Add post mutation permissions.
CI / test (pull_request) Successful in 6m18s

Add authenticated post creation and body-only editing routes with root participation, hidden-thread, homeowner ownership, and admin authorship checks.
This commit is contained in:
2026-08-27 00:46:37 -07:00
parent e86c2072ea
commit 8e954d60d8
3 changed files with 464 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)