mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-11 12:02:51 +02:00
24 lines
555 B
Go
24 lines
555 B
Go
package subsonic
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/deluan/navidrome/server/subsonic/responses"
|
|
)
|
|
|
|
type SystemController struct{}
|
|
|
|
func NewSystemController() *SystemController {
|
|
return &SystemController{}
|
|
}
|
|
|
|
func (c *SystemController) Ping(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
|
|
return NewResponse(), nil
|
|
}
|
|
|
|
func (c *SystemController) GetLicense(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
|
|
response := NewResponse()
|
|
response.License = &responses.License{Valid: true}
|
|
return response, nil
|
|
}
|