Fix testcase

This commit is contained in:
Amarpreet Minhas 2019-10-06 00:34:11 -04:00
parent 9cc2c7c234
commit f5a37e34d4

View file

@ -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
}