Handle API token

This commit is contained in:
perp 2024-06-03 14:52:08 +01:00
parent 88461ea03d
commit 8277ec50ec

View File

@ -65,3 +65,10 @@ func (ctx *Context) Error(err string) models.Error {
Type: err,
}
}
// Return a Token
func (ctx *Context) Token(token string) models.Token {
return models.Token{
Token: token,
}
}