logout route schema

This commit is contained in:
Jörn-Michael Miehe 2019-05-07 22:33:37 +02:00
parent f51796902f
commit 1505667e1e

View file

@ -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) ->