Skip to content

Commit

Permalink
remove auth for the /bot/{name} endpoint (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkevinpal authored Jul 3, 2023
1 parent 625a9a2 commit f35ca2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion routes/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ import (
func BotRoutes() chi.Router {
r := chi.NewRouter()

r.Group(func(r chi.Router) {
r.Get("/{name}", handlers.GetBotByUniqueName)
})

r.Group(func(r chi.Router) {
r.Use(auth.PubKeyContext)

r.Put("/", handlers.CreateOrEditBot)
r.Get("/{name}", handlers.GetBotByUniqueName)
r.Delete("/{uuid}", handlers.DeleteBot)
})

Expand Down

0 comments on commit f35ca2e

Please sign in to comment.