diff --git a/routes/api/v1/token_check.go b/routes/api/v1/token_check.go index 09aaae0..2ea0bce 100644 --- a/routes/api/v1/token_check.go +++ b/routes/api/v1/token_check.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/dgrijalva/jwt-go" "github.com/labstack/echo" + "git.mowie.cc/konrad/Library/models" ) // CheckToken checks prints a message if the token is valid or not. Currently only used for testing pourposes. @@ -13,5 +14,5 @@ func CheckToken(c echo.Context) error { fmt.Println(user.Valid) - return nil + return c.JSON(418, models.Message{"🍵"}) }