Skip to content

Commit

Permalink
feat: open admin auth
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Mar 16, 2024
1 parent cdfcf26 commit 8a00e46
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/constant/auth/auth.constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ var ExcludePath = map[string]struct{}{
}

var AdminPath = map[string]struct{}{
// "DELETE /user/:id": {},
// "GET /pets/admin": {},
// "POST /pets": {},
// "PUT /pets/:id": {},
// "PUT /pets/:id/visible": {},
// "DELETE /pets/:id": {},
// "POST /images/assign/:pet_id": {},
// "DELETE /images/:id": {},
// "POST /images/": {},
// "GET /images/:id": {},
"DELETE /user/:id": {},
"GET /pets/admin": {},
"POST /pets": {},
"PUT /pets/:id": {},
"PUT /pets/:id/visible": {},
"DELETE /pets/:id": {},
"POST /images/assign/:pet_id": {},
"DELETE /images/:id": {},
"POST /images/": {},
}

var VersionList = map[string]struct{}{
Expand Down

0 comments on commit 8a00e46

Please sign in to comment.