feat: add basic auth to /last ⚠️
guess thats a security vulnerability 🔥
This commit is contained in:
parent
6c301cff0c
commit
4523393c2a
2
abyss.go
2
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))
|
mux.HandleFunc("/token", BasicAuth(app.createTokenHandler, app))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user