Skip to content

Commit

Permalink
temp: disable admin paths
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 24, 2024
1 parent 9896c9b commit e7e8552
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/constant/auth/auth.constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ var ExcludePath = map[string]struct{}{
}

var AdminPath = map[string]struct{}{
"DELETE /user/:id": {},
"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": {},
// "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": {},
}

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

0 comments on commit e7e8552

Please sign in to comment.