This commit is contained in:
konrad 2017-12-01 12:38:09 +01:00 committed by kolaente
parent 568928b157
commit 2cd48f2e30
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 1 deletions

View File

@ -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{"🍵"})
}