Add route "/users/:uid/keys/current"

This commit is contained in:
2024-06-01 13:22:56 +02:00
parent 0b7fb533da
commit 189c3ab273
4 changed files with 101 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ type KeyTokenWithTokenJSON struct {
Token string `json:"token"`
}
func (j KeyTokenJSON) WithToken(tok string) any {
func (j KeyTokenJSON) WithToken(tok string) KeyTokenWithTokenJSON {
return KeyTokenWithTokenJSON{
KeyTokenJSON: j,
Token: tok,