This commit is contained in:
parent
568928b157
commit
2cd48f2e30
|
@ -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{"🍵"})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue