fix linting errors,

group more routes,
use mergeParams in router init
This commit is contained in:
2023-07-31 19:23:22 +00:00
parent aae3bb14c0
commit 8acaba3911
9 changed files with 29 additions and 37 deletions

View File

@@ -2,7 +2,7 @@ import { WebSocketServer } from "ws";
import * as cookie from "cookie";
import { Router } from "express";
export const router = Router();
export const router = Router({ mergeParams: true }); ;
const requestPVE = global.pve.requestPVE;
const checkAuth = global.utils.checkAuth;