Handle API token
This commit is contained in:
parent
88461ea03d
commit
8277ec50ec
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user