This commit is contained in:
sentriz
2019-04-01 00:59:47 +01:00
parent 5835e42695
commit b7c398f1eb
5 changed files with 235 additions and 1 deletions

View File

@@ -3,10 +3,15 @@ package handler
import (
"net/http"
"github.com/sentriz/gonic/context"
"github.com/sentriz/gonic/subsonic"
"github.com/labstack/echo"
)
// GetTest doesn't do anything
func (h *Handler) GetTest(c echo.Context) error {
return c.JSON(http.StatusOK, "hello")
cc := c.(*context.Subsonic)
resp := subsonic.NewResponse()
return cc.Respond(http.StatusOK, resp)
}