2020-01-19 18:21:44 -05:00
|
|
|
package subsonic
|
2016-03-09 10:22:10 -05:00
|
|
|
|
2020-01-07 14:56:26 -05:00
|
|
|
import (
|
|
|
|
|
"net/http"
|
2016-03-09 10:22:10 -05:00
|
|
|
|
2020-01-23 19:44:08 -05:00
|
|
|
"github.com/navidrome/navidrome/server/subsonic/responses"
|
2020-01-07 14:56:26 -05:00
|
|
|
)
|
2016-03-09 10:22:10 -05:00
|
|
|
|
2022-11-21 12:57:56 -05:00
|
|
|
func (api *Router) Ping(_ *http.Request) (*responses.Subsonic, error) {
|
2020-08-13 22:11:18 -04:00
|
|
|
return newResponse(), nil
|
2016-03-09 10:22:10 -05:00
|
|
|
}
|
|
|
|
|
|
2022-11-21 12:57:56 -05:00
|
|
|
func (api *Router) GetLicense(_ *http.Request) (*responses.Subsonic, error) {
|
2020-08-13 22:11:18 -04:00
|
|
|
response := newResponse()
|
2016-03-09 10:22:10 -05:00
|
|
|
response.License = &responses.License{Valid: true}
|
2020-01-07 14:56:26 -05:00
|
|
|
return response, nil
|
2016-03-09 10:22:10 -05:00
|
|
|
}
|