Grouped some API controllers by functionality

This commit is contained in:
Deluan
2016-03-09 10:22:10 -05:00
parent 7161325716
commit 0d8c6b58db
13 changed files with 278 additions and 340 deletions
+15
View File
@@ -0,0 +1,15 @@
package api
import "github.com/deluan/gosonic/api/responses"
type SystemController struct{ BaseAPIController }
func (c *SystemController) Ping() {
c.SendResponse(c.NewEmpty())
}
func (c *SystemController) GetLicense() {
response := c.NewEmpty()
response.License = &responses.License{Valid: true}
c.SendResponse(response)
}