navidrome/api/system.go
2017-04-01 09:47:14 -04:00

15 lines
333 B
Go

package api
import "github.com/cloudsonic/sonic-server/api/responses"
type SystemController struct{ BaseAPIController }
func (c *SystemController) Ping() {
c.SendEmptyResponse()
}
func (c *SystemController) GetLicense() {
response := c.NewEmpty()
response.License = &responses.License{Valid: true}
c.SendResponse(response)
}