fourier/src/main.cpp
parovoz 2e79a5d0fd
All checks were successful
CMake on a single platform / build (push) Successful in 18s
init
2024-09-12 23:40:20 +04:00

29 lines
663 B
C++

#include <Wt/WServer.h>
#include "MyApplication.h"
using namespace std;
using namespace Wt;
int main(int argc, char* argv[]) {
int code = 0;
try {
WServer server(argc, argv, WTHTTP_CONFIGURATION);
using namespace placeholders;
server.addEntryPoint( EntryPointType::Application,
[](const WEnvironment& env){return make_unique<MyApplication>(env);},
"/"
);
server.run();
}
catch ( WServer::Exception& e ) { cerr << e.what() << endl; code = -1; }
catch ( std::exception& e ) { cerr << "exception: " << e.what() << endl; code = -1; }
return code;
}