feat: add audit package (#1046)

This commit is contained in:
Colin Adler
2022-04-25 18:57:59 +00:00
committed by GitHub
parent a2dd618849
commit 2a57ea757a
8 changed files with 411 additions and 2 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ func New(options *Options) (http.Handler, func()) {
})
r.Group(func(r chi.Router) {
r.Use(apiKeyMiddleware)
r.Post("/", api.postUsers)
r.Post("/", api.postUser)
r.Get("/", api.users)
r.Route("/{user}", func(r chi.Router) {
r.Use(httpmw.ExtractUserParam(options.Database))