From 2cd48f2e3094ade513cb37e2bde51bd9224242db Mon Sep 17 00:00:00 2001 From: konrad Date: Fri, 1 Dec 2017 12:38:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api/v1/token_check.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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{"🍵"}) }