1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-01 07:35:57 +09:00

Return 404 for undefined .well-known (#3404)

This commit is contained in:
MeiMei 2018-11-26 04:49:24 +09:00 committed by syuilo
parent 857940f402
commit 06124dbbd5

View File

@ -59,6 +59,11 @@ const router = new Router();
router.use(activityPub.routes());
router.use(webFinger.routes());
// Return 404 for other .well-known
router.all('/.well-known/*', async ctx => {
ctx.status = 404;
});
// Register router
app.use(router.routes());