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