Skip to content

Commit

Permalink
chore: use auth middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
K-A-I-L-A-S-H committed Oct 13, 2023
1 parent e1fcfff commit d21e2d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions services/dashboard-backend/internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ func RegisterHandlers(mux *chi.Mux) {
subRouter.Use(
middleware.AuthorizationMiddleware(
middleware.MethodPermissionMap{
http.MethodGet: allPermissions,
http.MethodPatch: adminOnly,
http.MethodDelete: adminOnly,
http.MethodGet: allPermissions,
},
),
)
Expand Down

0 comments on commit d21e2d9

Please sign in to comment.