logout JSON schema

This commit is contained in:
Jörn-Michael Miehe 2019-05-09 14:32:42 +02:00
parent 0d604ef320
commit 0f7176999b
2 changed files with 12 additions and 11 deletions

View file

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

View file

@ -0,0 +1,11 @@
module.exports =
body:
session: type: 'string'
response:
200:
type: 'object'
required: ['success']
properties:
success:
type: 'boolean'
const: true