2022-11-15 16:05:47 +01:00
|
|
|
#include "crow.h"
|
2022-11-15 17:05:14 +01:00
|
|
|
#include "ternarytrie.h"
|
2022-11-15 16:05:47 +01:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2022-11-15 17:05:14 +01:00
|
|
|
TernaryTrie *trie = ternarytrie_init();
|
|
|
|
|
2022-11-15 16:05:47 +01:00
|
|
|
crow::SimpleApp app;
|
|
|
|
|
2022-11-15 17:05:14 +01:00
|
|
|
CROW_ROUTE(app, "/").methods(crow::HTTPMethod::Get, crow::HTTPMethod::Post)([](){
|
2022-11-15 16:05:47 +01:00
|
|
|
return "Hello world";
|
|
|
|
});
|
|
|
|
|
|
|
|
app.port(18080).multithreaded().run();
|
|
|
|
}
|