feat: add basic auth to /last ⚠️

guess thats a security vulnerability 🔥
This commit is contained in:
jabuxas 2025-02-09 18:54:22 -03:00
parent 6c301cff0c
commit 4523393c2a

View File

@ -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))