Moved package api to subsonic under server

This commit is contained in:
Deluan 2020-01-19 18:21:44 -05:00
parent 67eeb218c4
commit 7610b42f4b
59 changed files with 41 additions and 41 deletions

View file

@ -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
}