From f5a37e34d4d9f481de170518216be84fdd75b945 Mon Sep 17 00:00:00 2001 From: Asara Date: Sun, 6 Oct 2019 00:34:11 -0400 Subject: [PATCH] Fix testcase --- packages/blog/blog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/blog/blog.go b/packages/blog/blog.go index 640e30b..97f412b 100644 --- a/packages/blog/blog.go +++ b/packages/blog/blog.go @@ -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 }