diff --git a/source/csgs/http.d b/source/csgs/http.d index dff3585..bdfbd48 100644 --- a/source/csgs/http.d +++ b/source/csgs/http.d @@ -17,6 +17,10 @@ void startServer() { PathDelegatingHandler handler = new PathDelegatingHandler(); handler.addMapping("POST", "/extracts", &handleExtract); handler.addMapping("GET", "/extracts/{extractId}", &getExtract); + handler.addMapping("GET", "/status", (ref HttpRequestContext ctx) { + ctx.response.setStatus(HttpStatus.OK); + ctx.response.writeBodyString("online"); + }); FileResolvingHandler fileHandler = new FileResolvingHandler("site", DirectoryResolutionStrategies.serveIndexFiles); handler.addMapping("/**", fileHandler);