2024-07-24 20:32:08 +00:00
|
|
|
import handy_httpd;
|
2024-09-11 20:15:53 +00:00
|
|
|
import slf4d;
|
|
|
|
import slf4d.default_provider;
|
2024-08-01 17:01:50 +00:00
|
|
|
import api_mapping;
|
2024-07-24 20:32:08 +00:00
|
|
|
|
|
|
|
void main() {
|
2024-09-11 20:15:53 +00:00
|
|
|
auto provider = new DefaultProvider(true, Levels.INFO);
|
|
|
|
configureLoggingProvider(provider);
|
|
|
|
|
2024-07-24 20:32:08 +00:00
|
|
|
ServerConfig cfg;
|
|
|
|
cfg.workerPoolSize = 5;
|
|
|
|
cfg.port = 8080;
|
2024-08-01 17:01:50 +00:00
|
|
|
HttpServer server = new HttpServer(mapApiHandlers(), cfg);
|
2024-07-31 17:20:17 +00:00
|
|
|
server.start();
|
|
|
|
}
|