2016-02-25 22:31:06 +01:00
|
|
|
package api
|
2016-02-24 17:29:26 +01:00
|
|
|
|
|
|
|
import (
|
2016-02-25 22:31:06 +01:00
|
|
|
"github.com/deluan/gosonic/api/responses"
|
2016-02-24 17:29:26 +01:00
|
|
|
)
|
|
|
|
|
2016-03-02 19:04:55 +01:00
|
|
|
type GetLicenseController struct{ BaseAPIController }
|
2016-02-24 17:29:26 +01:00
|
|
|
|
2016-02-26 00:47:25 +01:00
|
|
|
func (c *GetLicenseController) Get() {
|
2016-03-02 19:04:55 +01:00
|
|
|
response := c.NewEmpty()
|
2016-03-02 18:06:57 +01:00
|
|
|
response.License = &responses.License{Valid: true}
|
2016-03-02 19:04:55 +01:00
|
|
|
c.SendResponse(response)
|
2016-02-24 17:29:26 +01:00
|
|
|
}
|