summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-04-02 09:40:08 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-04-02 09:40:08 -0600
commiteccc0f20f01d0176cfbcc031233b549b6013ddac (patch)
treea2974a97aa9a3c131d3b3f89c72c2d47cfd15a77 /api
parent935c474878e7e1046d59702deb06ce32b4bd392d (diff)
downloadhatecomputers.club-eccc0f20f01d0176cfbcc031233b549b6013ddac.tar.gz
hatecomputers.club-eccc0f20f01d0176cfbcc031233b549b6013ddac.zip
set path precedence for / rather than /static/
Diffstat (limited to 'api')
-rw-r--r--api/serve.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/serve.go b/api/serve.go
index 2cddcfd..f71001d 100644
--- a/api/serve.go
+++ b/api/serve.go
@@ -78,7 +78,7 @@ func MakeServer(argv *args.Arguments, dbConn *sql.DB) *http.Server {
mux := http.NewServeMux()
fileServer := http.FileServer(http.Dir(argv.StaticPath))
- mux.Handle("/static/", http.StripPrefix("/static/", CacheControlMiddleware(fileServer, 3600)))
+ mux.Handle("GET /static/", http.StripPrefix("/static/", CacheControlMiddleware(fileServer, 3600)))
makeRequestContext := func() *RequestContext {
return &RequestContext{