Skip to content

Commit

Permalink
change request.routerPath to requrest.routeOptions.url (misskey-dev#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
AsPulse authored and miyakogi committed Oct 4, 2023
1 parent 3efae7e commit 3e1629b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/server/web/ClientServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class ClientServerService {
// Authenticate
fastify.addHook('onRequest', async (request, reply) => {
// %71ueueとかでγƒͺγ‚―γ‚¨γ‚Ήγƒˆγ•γ‚ŒγŸγ‚‰ε›°γ‚‹γŸγ‚
const url = decodeURI(request.routerPath);
const url = decodeURI(request.routeOptions.url);
if (url === bullBoardPath || url.startsWith(bullBoardPath + '/')) {
const token = request.cookies.token;
if (token == null) {
Expand Down

0 comments on commit 3e1629b

Please sign in to comment.