diff --git a/main.go b/main.go index 58000ad..c327f31 100644 --- a/main.go +++ b/main.go @@ -109,7 +109,7 @@ func main() { return pages.HandlePost(w, r) } })) - // app.Handle("GET /stack/:baseName.:extension", wrapHandler(pages.HandleMedia)) + app.Handle("GET /stack/{component}", wrapHandler(pages.HandleMedia)) // matches anything with no more specific route app.Handle("GET /", wrapHandler(func(w http.ResponseWriter, r *http.Request) error { err := render.Render(w, "errors/404", nil)