forked from lthn/blockchain
22 lines
394 B
C++
22 lines
394 B
C++
#include "ApiServer.hpp"
|
|
#include "oatpp/core/base/Environment.hpp"
|
|
#include "common/util.h"
|
|
|
|
int main(int argc, const char * argv[]) {
|
|
|
|
oatpp::base::Environment::init();
|
|
|
|
ApiServer server;
|
|
|
|
tools::signal_handler::install([&server] {
|
|
server.stop();
|
|
});
|
|
|
|
server.start();
|
|
server.wait();
|
|
|
|
/* Destroy oatpp Environment */
|
|
oatpp::base::Environment::destroy();
|
|
|
|
return 0;
|
|
}
|