Skip to content

Commit 51929f8

Browse files
committed
feat: normalized url to admin area
1 parent 6766165 commit 51929f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/hooks/express/admin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.expressCreateServer = (hookName: string, args: ArgsExpressType, cb: Func
2424
}
2525
args.app.get('/admin/*', (req: any, res: any) => {
2626
// extract URL path
27-
let pathname = path.join(ADMIN_PATH + req.url);
27+
let pathname = path.join(ADMIN_PATH, req.url);
2828
pathname = path.normalize(pathname)
2929

3030
if (!pathname.startsWith(ADMIN_PATH)) {

0 commit comments

Comments
 (0)