Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
totegamma committed Nov 5, 2023
1 parent bf2297c commit 3b0a332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ func main() {
apiV1.POST("/entity", entityHandler.Register, authService.Restrict(auth.ISUNKNOWN))
apiV1.DELETE("/entity/:id", entityHandler.Delete, authService.Restrict(auth.ISADMIN))
apiV1.PUT("/entity/:id", entityHandler.Update, authService.Restrict(auth.ISADMIN))
apiV1.POST("/entities/ack", entityHandler.Ack, authService.Restrict(auth.ISLOCAL))
apiV1.DELETE("/entities/ack", entityHandler.Unack, authService.Restrict(auth.ISLOCAL))
apiV1.POST("/entities/ack", entityHandler.Ack, authService.Restrict(auth.ISKNOWN))
apiV1.DELETE("/entities/ack", entityHandler.Unack, authService.Restrict(auth.ISKNOWN))
apiV1.POST("/admin/entity", entityHandler.Create, authService.Restrict(auth.ISADMIN))

apiV1.POST("/message", messageHandler.Post, authService.Restrict(auth.ISLOCAL))
Expand Down

0 comments on commit 3b0a332

Please sign in to comment.