mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-05 13:37:38 +03:00
Moved package api
to subsonic
under server
This commit is contained in:
parent
67eeb218c4
commit
7610b42f4b
59 changed files with 41 additions and 41 deletions
|
@ -1,23 +0,0 @@
|
|||
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 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue