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:
2026-08-27 14:28:21 +00:00
committed by codegirl007
parent e86c2072ea
commit 4d994d5300
3 changed files with 472 additions and 0 deletions
+2
View File
@@ -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)