Fix testcase
This commit is contained in:
parent
9cc2c7c234
commit
f5a37e34d4
1 changed files with 1 additions and 1 deletions
|
@ -84,12 +84,12 @@ func Routes() *chi.Mux {
|
|||
r.Use(jwtauth.Authenticator)
|
||||
r.Post("/", createBlogPost)
|
||||
r.Patch("/by-id/{id}", updateBlogPostById)
|
||||
r.Get("/by-slug/{slug}", getBlogPostBySlug)
|
||||
})
|
||||
r.Get("/", getBlogPosts)
|
||||
r.Get("/by-id/{id}", getBlogPostById)
|
||||
r.Get("/by-tag/{tag}", getBlogPostsByTag)
|
||||
r.Get("/by-author/{author}", getBlogPostsByAuthor)
|
||||
r.Get("/by-slug/{slug}", getBlogPostBySlug)
|
||||
return r
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue