fix: appropriate 404 handling for write API calls

v1.18.x
Julian Lam 4 years ago
parent ede9435f0e
commit b6cce75d97

@ -55,4 +55,9 @@ Write.reload = async (params) => {
});
winston.info(`[api] Adding ${pluginRouter.stack.length} route(s) to \`api/v3/plugins\``);
router.use('/api/v3/plugins', pluginRouter);
// 404 handling
router.use('/api/v3', (req, res) => {
helpers.formatApiResponse(404, res);
});
};

Loading…
Cancel
Save