This commit is contained in:
2025-12-29 23:09:06 +08:00
parent df6db9d88b
commit 7370f649c4
5 changed files with 184 additions and 8 deletions

View File

@@ -152,7 +152,12 @@ app
const tokenUser = ctx.state.tokenUser;
let isUser = !!tokenUser;
ctx.body = {
list: app.router.routes.map((item) => {
list: app.router.routes.filter(item => {
if (item.id === 'auth' || item.id === 'auth-can' || item.id === 'check-auth-admin' || item.id === 'auth-admin') {
return false;
}
return true;
}).map((item) => {
return {
id: item.id,
path: item.path,