#include "Application.hpp" #include "DatabaseConnection.hpp" #include #include #include #include Wt::WApplication * createApplication(const Wt::WEnvironment & env) { auto dbConnection = eedb::DbConnection{}.create(env); return eedb::Application{}.create(env, std::move(dbConnection)); } int main(int argc, char ** argv) { try { Wt::WServer server(argc, argv, WTHTTP_CONFIGURATION); server.addEntryPoint(Wt::Application, createApplication); eedb::auth::Services::configureAuth(); server.run(); } catch(Wt::WServer::Exception & e) { std::cerr << e.what() << std::endl; } catch(std::exception & e) { std::cerr << "exception: " << e.what() << std::endl; } }