Skip to content

Commit

Permalink
fix router
Browse files Browse the repository at this point in the history
  • Loading branch information
kish1n committed Aug 27, 2024
1 parent 8bd983a commit 9aa59e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func Run(ctx context.Context, cfg config.Config) {
})

r.Route("/daily_questions", func(r chi.Router) {
r.Use(authMW)
r.Route("/admin", func(r chi.Router) {
r.Use(authMW)
r.Delete("/{question_id}", handlers.DeleteDailyQuestion)
r.Patch("/{question_id}", handlers.EditDailyQuestion)
r.Post("/", handlers.CreateDailyQuestion)
Expand Down

0 comments on commit 9aa59e5

Please sign in to comment.