update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user