remove unneeded function
This commit is contained in:
parent
75ec2a02f5
commit
5d265d9753
1 changed files with 0 additions and 5 deletions
|
@ -71,7 +71,6 @@ func Routes() *chi.Mux {
|
||||||
r.Use(jwtauth.Verifier(TokenAuth))
|
r.Use(jwtauth.Verifier(TokenAuth))
|
||||||
r.Use(jwtauth.Authenticator)
|
r.Use(jwtauth.Authenticator)
|
||||||
r.Post("/", createBlogPost)
|
r.Post("/", createBlogPost)
|
||||||
r.Patch("/{slug}", updateBlogPostBySlug)
|
|
||||||
r.Patch("/id/{id}", updateBlogPostById)
|
r.Patch("/id/{id}", updateBlogPostById)
|
||||||
})
|
})
|
||||||
r.Get("/", getBlogPosts)
|
r.Get("/", getBlogPosts)
|
||||||
|
@ -156,10 +155,6 @@ func createBlogPost(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateBlogPostBySlug(w http.ResponseWriter, r *http.Request) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func updateBlogPostById(w http.ResponseWriter, r *http.Request) {
|
func updateBlogPostById(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue