logout route schema
This commit is contained in:
parent
f51796902f
commit
1505667e1e
1 changed files with 11 additions and 0 deletions
|
@ -8,6 +8,17 @@ fftcgdb = (require '../../db')
|
|||
module.exports =
|
||||
url: '/user/logout'
|
||||
method: 'POST'
|
||||
schema:
|
||||
body:
|
||||
session: type: 'string'
|
||||
response:
|
||||
200:
|
||||
type: 'object'
|
||||
required: ['success']
|
||||
properties:
|
||||
success:
|
||||
type: 'boolean'
|
||||
const: true
|
||||
|
||||
handler: (request, reply) ->
|
||||
new Promise (resolve) ->
|
||||
|
|
Reference in a new issue