/health endpoint

Summary: Add a simple endpoint to the server to check if it's up and running.

Reviewed By: aigoncharov

Differential Revision: D35087344

fbshipit-source-id: ec490fdb11042e7a7e4b9b944b018c4c9853ed49
This commit is contained in:
Pascal Hartig
2022-03-25 07:59:42 -07:00
committed by Facebook GitHub Bot
parent 04dfc91c51
commit c662f3679d

View File

@@ -53,6 +53,10 @@ function startAssetServer(
}); });
}); });
app.get('/health', (_req, res) => {
res.end('flipper-ok');
});
app.use(express.static(config.staticDir)); app.use(express.static(config.staticDir));
const server = http.createServer(app); const server = http.createServer(app);