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.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/web/routes.go b/internal/web/routes.go
index bd39a18..84b19a6 100644
--- a/internal/web/routes.go
+++ b/internal/web/routes.go
@@ -48,6 +48,8 @@ func (s *Server) rootRoutes() http.Handler {
m.HandleFunc("POST /b/{sub}/announcements/{id}/toggle", s.withBlog(s.handleSectionToggle))
m.HandleFunc("GET /b/{sub}/design", s.withBlog(s.handleDesignForm))
m.HandleFunc("POST /b/{sub}/design", s.withBlog(s.handleDesign))
+ m.HandleFunc("POST /b/{sub}/design/preset", s.withBlog(s.handleDesignPreset))
+ m.HandleFunc("POST /b/{sub}/design/reset", s.withBlog(s.handleDesignReset))
m.HandleFunc("GET /b/{sub}/images", s.withBlog(s.handleImages))
m.HandleFunc("POST /b/{sub}/images/upload", s.withBlog(s.handleImageUpload))
m.HandleFunc("POST /b/{sub}/images/{id}/delete", s.withBlog(s.handleImageDelete))
@@ -64,6 +66,7 @@ func (s *Server) rootRoutes() http.Handler {
m.HandleFunc("GET /media/{id}", s.handleMedia)
m.Handle("GET /static/{file}", s.staticHandler())
+ m.HandleFunc("GET /favicon.ico", s.hostBlog(s.handleFavicon))
// The root domain also serves the superadmin's blog. Literal routes above win
// over these wildcards; see reservedPageSlugs for the names that are shadowed.
s.blogRoutes(m, s.hostBlog)
@@ -84,6 +87,7 @@ func (s *Server) subdomainRoutes() http.Handler {
m.HandleFunc("GET /webadmin", s.handleWebadminRedirect)
m.HandleFunc("GET /media/{id}", s.handleMedia)
m.Handle("GET /static/{file}", s.staticHandler())
+ m.HandleFunc("GET /favicon.ico", s.hostBlog(s.handleFavicon))
s.blogRoutes(m, s.hostBlog)
return m
}