From ac96ba4ac627845860dd7c3314498131ba811de5 Mon Sep 17 00:00:00 2001 From: LgCookie Date: Fri, 12 Dec 2025 22:52:40 +0800 Subject: [PATCH] Fix API route middleware path for Milky --- src/milky/network/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/milky/network/http.ts b/src/milky/network/http.ts index 222ab9be0..e07a811a9 100644 --- a/src/milky/network/http.ts +++ b/src/milky/network/http.ts @@ -21,7 +21,7 @@ class MilkyHttpHandler { // Access token middleware for API routes if (config.accessToken) { - this.app.use(`${config.prefix}/api/*`, (req, res, next) => { + this.app.use(`${config.prefix}/api`, (req, res, next) => { if (req.headers['content-type'] !== 'application/json') { ctx.logger.warn( 'MilkyHttp',