- 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

@@ -8,10 +8,9 @@ import (
func (q *QBit) Routes() http.Handler {
r := chi.NewRouter()
r.Use(q.CategoryContext)
r.Post("/auth/login", q.handleLogin)
r.Group(func(r chi.Router) {
r.Use(q.authContext)
r.Post("/auth/login", q.handleLogin)
r.Route("/torrents", func(r chi.Router) {
r.Use(HashesCtx)
r.Get("/info", q.handleTorrentsInfo)