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 = module.exports =
url: '/user/logout' url: '/user/logout'
method: 'POST' method: 'POST'
schema:
body:
session: type: 'string'
response:
200:
type: 'object'
required: ['success']
properties:
success:
type: 'boolean'
const: true
handler: (request, reply) -> handler: (request, reply) ->
new Promise (resolve) -> new Promise (resolve) ->