Skip to content

Commit 6840434

Browse files
authored
change request.routerPath to requrest.routeOptions.url (misskey-dev#11935)
1 parent 09dfb9b commit 6840434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/server/web/ClientServerService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class ClientServerService {
188188
// Authenticate
189189
fastify.addHook('onRequest', async (request, reply) => {
190190
// %71ueueとかでリクエストされたら困るため
191-
const url = decodeURI(request.routerPath);
191+
const url = decodeURI(request.routeOptions.url);
192192
if (url === bullBoardPath || url.startsWith(bullBoardPath + '/')) {
193193
const token = request.cookies.token;
194194
if (token == null) {

0 commit comments

Comments
 (0)