Revert "fix: appropriate 404 handling for write API calls"

This reverts commit b6cce75d97.
v1.18.x
Barış Soner Uşaklı 4 years ago
parent 9ee3cb9b62
commit 135c2d6c7d

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

Loading…
Cancel
Save