Skip to content

Commit

Permalink
feat: add admin paths
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 9, 2024
1 parent 88d4f6d commit b625e8d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/constant/auth/auth.constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ var ExcludePath = map[string]struct{}{
"POST /auth/signup": {},
"POST /auth/signin": {},
"POST /auth/verify": {},
"GET /pet/": {},
"GET /pets/": {},
"GET /adopt/": {},
}

var AdminPath = map[string]struct{}{}
var AdminPath = map[string]struct{}{
"DELETE /users/:id": {},
"POST /pets/": {},
"PUT /pets/:id": {},
"PUT /pets/:id/visible": {},
"DELETE /pets/:id": {},
//need to add image upload, delete, assignpet
}

var VersionList = map[string]struct{}{
"v1": {},
Expand Down

0 comments on commit b625e8d

Please sign in to comment.