fix silly admin routing nonsense

This commit is contained in:
ari melody 2025-11-08 14:13:42 +00:00
parent 09c09b6310
commit a33e6717e0
Signed by: ari
GPG key ID: CF99829C92678188
6 changed files with 57 additions and 58 deletions

View file

@ -15,8 +15,8 @@ func Handler(app *model.AppState) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
mux := http.NewServeMux()
mux.Handle("/{id}", serveBlogPost(app))
mux.Handle("/", serveBlogIndex(app))
mux.Handle("/blogs/{id}", serveBlogPost(app))
mux.Handle("/blogs/", serveBlogIndex(app))
mux.ServeHTTP(w, r)
})