From 4523393c2aa8e521b0e7ea332875ef19c361348c Mon Sep 17 00:00:00 2001 From: jabuxas Date: Sun, 9 Feb 2025 18:54:22 -0300 Subject: [PATCH] feat: add basic auth to /last :warning: guess thats a security vulnerability :fire: --- abyss.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abyss.go b/abyss.go index 77ee45c..a07b8b8 100644 --- a/abyss.go +++ b/abyss.go @@ -95,7 +95,7 @@ func setupHandlers(mux *http.ServeMux, app *Application) { ), ) - mux.HandleFunc("/last", app.lastUploadedHandler) + mux.HandleFunc("/last", BasicAuth(app.lastUploadedHandler, app)) mux.HandleFunc("/token", BasicAuth(app.createTokenHandler, app))