fix handler patterns

This commit is contained in:
csehviktor
2025-08-10 16:43:58 +02:00
parent bf86124e17
commit 90f10143da

View File

@@ -37,8 +37,8 @@ func main() {
})
mux.HandleFunc("GET /", httpHandler.HandleHome)
mux.HandleFunc("POST /", httpHandler.HandleSet)
mux.HandleFunc("GET /{id}", httpHandler.HandleGet)
mux.HandleFunc("GET /{id}/{theme}", httpHandler.HandleGet)
mux.HandleFunc("GET /{id}/", httpHandler.HandleGet)
mux.HandleFunc("GET /{id}/{theme}/", httpHandler.HandleGet)
slog.Info("starting http server", "addr", cli.addr, "maxSize", cli.maxSize)