mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-05 13:37:38 +03:00
23 lines
539 B
Go
23 lines
539 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/cloudsonic/sonic-server/api/responses"
|
|
)
|
|
|
|
type SystemController struct{}
|
|
|
|
func NewSystemController() *SystemController {
|
|
return &SystemController{}
|
|
}
|
|
|
|
func (c *SystemController) Ping(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
|
|
return NewEmpty(), nil
|
|
}
|
|
|
|
func (c *SystemController) GetLicense(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
|
|
response := NewEmpty()
|
|
response.License = &responses.License{Valid: true}
|
|
return response, nil
|
|
}
|