From 438c70b41b287f43ca1b5c2d47f3af14e88daaea Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Fri, 2 Feb 2024 12:57:18 -0600 Subject: [PATCH] actually serve public --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 51b54f8..7536d1d 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,7 @@ package main import ( "context" + "log/slog" "net/http" "os" @@ -46,6 +47,7 @@ func main() { r.Post("/user/login", s.Login) r.With(serve.WithSession(sessions)).Get("/user/me", s.Me) r.With(serve.WithSession(sessions)).Get("/queue", s.Queue) - r.Method("GET", "/", http.FileServer(http.Dir(public))) + r.Method("GET", "/*", http.FileServer(http.Dir(public))) + slog.Info("listening", "addr", addr, "public", public) http.ListenAndServe(addr, r) }