aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/routes.go')
-rw-r--r--internal/web/routes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/web/routes.go b/internal/web/routes.go
index 273a832..26264ef 100644
--- a/internal/web/routes.go
+++ b/internal/web/routes.go
@@ -37,6 +37,7 @@ func (s *Server) rootRoutes() http.Handler {
m.HandleFunc("POST /b/{sub}/posts/{id}/edit", s.withBlog(s.handlePostSave))
m.HandleFunc("GET /b/{sub}/posts/{id}/delete", s.withBlog(s.handlePostDeleteConfirm))
m.HandleFunc("POST /b/{sub}/posts/{id}/delete", s.withBlog(s.handlePostDelete))
+ m.HandleFunc("POST /b/{sub}/preview", s.withBlog(s.handlePreview))
m.HandleFunc("GET /b/{sub}/announcements", s.withBlog(s.handleSections))
m.HandleFunc("GET /b/{sub}/announcements/new", s.withBlog(s.handleSectionForm))
m.HandleFunc("POST /b/{sub}/announcements/new", s.withBlog(s.handleSectionSave))