1 files changed,
0 insertions(+),
2 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-02-13 18:49:23 +0200
Authored at:
2026-02-13 17:14:08 +0200
Change ID:
qymzppxxnxmqnvxtxnpwzpwsopkxvsup
Parent:
0aadda9
M
internal/handlers/handlers.go
ยทยทยท 39 39 mux.HandleFunc("GET /{name}/refs/{$}", h.refsHandler) 40 40 mux.HandleFunc("GET /{name}/archive/{ref}", h.archiveHandler) 41 41 42 - 43 42 handler := h.recoverMiddleware(mux) 44 43 return h.loggingMiddleware(handler) 45 44 } 46 45 47 46 func (h *handlers) serveStatic(w http.ResponseWriter, r *http.Request) { 48 47 f := filepath.Clean(r.PathValue("file")) 49 - // TODO: check if files exists 50 48 http.ServeFileFS(w, r, web.StaticFS, f) 51 49 } 52 50