Add post mutation permissions (#4)
Co-authored-by: codegirl-007 <s.raide@gmail.com>
This commit was merged in pull request #4.
This commit is contained in:
@@ -177,6 +177,8 @@ func (s *Server) Handler() http.Handler {
|
||||
r.Post("/questions/{id}/vote", s.handleVote)
|
||||
r.Post("/questions/{id}/answer", s.handleAnswer)
|
||||
r.Post("/questions/{id}/hide", s.handleHide)
|
||||
r.Post("/posts", s.handleCreatePost)
|
||||
r.Post("/posts/{id}/edit", s.handleEditPost)
|
||||
r.Get("/login", s.handleLoginForm)
|
||||
r.Post("/login", s.handleLogin)
|
||||
r.Get("/register", s.handleRegisterForm)
|
||||
|
||||
Reference in New Issue
Block a user