- Add ghcr

- Add checks for arr url and token
This commit is contained in:
Mukhtar Akere
2025-02-28 03:57:26 +01:00
parent 7a989ccf2b
commit 7eb021aac1
5 changed files with 82 additions and 9 deletions

View File

@@ -100,6 +100,16 @@ func HashesCtx(next http.Handler) http.Handler {
}
func (q *QBit) handleLogin(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
_arr := ctx.Value("arr").(*arr.Arr)
if _arr == nil {
// No arr
_, _ = w.Write([]byte("Ok."))
return
}
if err := _arr.Validate(); err != nil {
q.logger.Info().Msgf("Error validating arr: %v", err)
}
_, _ = w.Write([]byte("Ok."))
}