fix: add back missing postAPIKey route (#4406)

This commit is contained in:
Garrett Delfosse
2022-10-06 17:56:43 -04:00
committed by GitHub
parent a89d6909b2
commit 32bb1e7ce9
4 changed files with 62 additions and 0 deletions
+1
View File
@@ -399,6 +399,7 @@ func New(options *Options) *API {
r.Get("/roles", api.userRoles)
r.Route("/keys", func(r chi.Router) {
r.Post("/", api.postAPIKey)
r.Route("/tokens", func(r chi.Router) {
r.Post("/", api.postToken)
r.Get("/", api.tokens)