Minor Optimization/Refactoring

This commit is contained in:
Tina_Azure
2023-04-22 23:01:44 +02:00
parent 78e1544321
commit 11ecf6452e
3 changed files with 72 additions and 62 deletions

View File

@ -11,7 +11,7 @@ using namespace std;
int main(int argc, char *argv[]) {
Utilities::config configuration;
if (argc > 0)
if (argc > 1)
configuration.configPath = argv[1];
if (configuration.readConfigFile()) {
@ -20,8 +20,6 @@ int main(int argc, char *argv[]) {
return 1;
}
string databaseURI = configuration.databaseConnectionString;
// Create app with Middleware
crow::App<crow::CookieParser> app;