Log endpoint consumption
Summary: ^ Reviewed By: antonk52 Differential Revision: D49830704 fbshipit-source-id: ebec670f85d69abfdc3ff291ba587925f92fcdcf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9c80324f5c
commit
4d9fb9170d
@@ -140,10 +140,14 @@ async function startHTTPServer(
|
||||
});
|
||||
|
||||
app.get('/info', (_req, res) => {
|
||||
console.info('[flipper-server] Received info request');
|
||||
res.json(environmentInfo);
|
||||
});
|
||||
|
||||
app.get('/shutdown', (_req, res) => {
|
||||
console.info(
|
||||
'[flipper-server] Received shutdown request, process will terminate',
|
||||
);
|
||||
res.json({success: true});
|
||||
|
||||
// Just exit the process, this will trigger the shutdown hooks.
|
||||
|
||||
Reference in New Issue
Block a user