mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
23 lines
555 B
Go
23 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
|
|
}
|