9
src/express/testingEndpoints.js
Normal file
9
src/express/testingEndpoints.js
Normal file
@@ -0,0 +1,9 @@
|
||||
function registerTestingEndpoints() {
|
||||
this.router.post('/killkillkill', (req, res) => {
|
||||
console.log('Gracefully killing server...');
|
||||
res.json({ message: 'Shutting down server.' });
|
||||
process.exit(0);
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = registerTestingEndpoints;
|
||||
Reference in New Issue
Block a user