add auth
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user