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 = module.exports =
url: '/user/logout' url: '/user/logout'
method: 'POST' method: 'POST'
schema: schema: (require './logout.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) ->

View file

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