test get to /

This commit is contained in:
Bel LaPointe
2024-02-20 08:09:13 -07:00
parent ec8d451df8
commit 324d4f430e
2 changed files with 17 additions and 1 deletions

View File

@@ -134,7 +134,7 @@ var public = func() http.FileSystem {
}()
func (h Handler) handle(session Session, w http.ResponseWriter, r *http.Request) error {
if !strings.HasPrefix(r.URL.Path, "/api") {
if !strings.HasPrefix(r.URL.Path, "/api/") {
http.FileServer(public).ServeHTTP(w, r)
return nil
}