Skip to content
Snippets Groups Projects
Commit 06124dbb authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

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

parent 857940f4
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment