Phase 2: Subsonic REST API framework (auth, response formatting, error handling, routing) plus user permission model

This commit is contained in:
2026-08-22 23:58:54 -05:00
parent f81c8704a5
commit b5e2bf01e2
26 changed files with 1772 additions and 75 deletions
+19
View File
@@ -0,0 +1,19 @@
package subsonic
func init() {
register("ping", handlePing)
register("getLicense", handleGetLicense)
}
func handlePing(rc *Context) *apiError {
rc.Response = newResponse()
return nil
}
// handleGetLicense always reports a valid, unlimited license: VibeSonic
// is free software and never requires a commercial Subsonic license.
func handleGetLicense(rc *Context) *apiError {
rc.Response = newResponse()
rc.Response.License = &License{Valid: true}
return nil
}