finnow/finnow-api/source/app.d

16 lines
339 B
D
Raw Permalink Normal View History

2024-07-24 20:32:08 +00:00
import handy_httpd;
import slf4d;
import slf4d.default_provider;
import api_mapping;
2024-07-24 20:32:08 +00:00
void main() {
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;
HttpServer server = new HttpServer(mapApiHandlers(), cfg);
server.start();
}