mirror of
https://github.com/navidrome/navidrome.git
synced 2024-08-28 13:31:28 +02:00
24 lines
539 B
Go
24 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
|
|
}
|