mirror of
https://github.com/glimpse-app/server.git
synced 2025-04-02 10:52:45 -04:00
returns json
This commit is contained in:
parent
37ad2d6a67
commit
7718424b0c
1 changed files with 2 additions and 4 deletions
|
@ -12,8 +12,7 @@ proc createAuthenticationRoutes*() =
|
|||
username - string - required
|
||||
email - string - required
|
||||
password - string - required
|
||||
returns:
|
||||
token - new login token
|
||||
returns: JSON
|
||||
]#
|
||||
post "/api/v1/newUser":
|
||||
# TODO: sanitization + check if username and email are unique
|
||||
|
@ -42,8 +41,7 @@ proc createAuthenticationRoutes*() =
|
|||
OR
|
||||
username - string - required via header
|
||||
password - string - required via header
|
||||
returns:
|
||||
token - token will be replaced by a new one
|
||||
returns: JSON
|
||||
]#
|
||||
get "/api/v1/newSession":
|
||||
var user = newUser()
|
||||
|
|
Loading…
Add table
Reference in a new issue