Phase 2: Subsonic REST API framework (auth, response formatting, error handling, routing) plus user permission model
This commit is contained in:
+9
-8
@@ -14,14 +14,15 @@ import (
|
||||
)
|
||||
|
||||
type Web struct {
|
||||
DB *sql.DB
|
||||
Config config.Config
|
||||
Sessions *auth.Sessions
|
||||
CSRF *auth.CSRF
|
||||
Middleware *auth.Middleware
|
||||
Scanner *scanner.Scanner
|
||||
CoverArt *coverart.Store
|
||||
Log *slog.Logger
|
||||
DB *sql.DB
|
||||
Config config.Config
|
||||
Sessions *auth.Sessions
|
||||
CSRF *auth.CSRF
|
||||
Middleware *auth.Middleware
|
||||
Scanner *scanner.Scanner
|
||||
CoverArt *coverart.Store
|
||||
EncryptionKey []byte // for auth.SetUserPassword; see internal/auth/subsonic_secret.go
|
||||
Log *slog.Logger
|
||||
}
|
||||
|
||||
// page renders a template with the standard envelope (current user, CSRF
|
||||
|
||||
Reference in New Issue
Block a user