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
+2 -1
View File
@@ -1,6 +1,7 @@
import { Router } from "express";
export const router = Router();
export const router = Router({ mergeParams: true }); ;
const db = global.db;
const requestPVE = global.pve.requestPVE;
const checkAuth = global.utils.checkAuth;
const getUserResources = global.utils.getUserResources;