Files

20 lines
470 B
Go

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
}