12 lines
321 B
CoffeeScript
12 lines
321 B
CoffeeScript
module.exports = (SHARE) ->
|
|
url: '/test'
|
|
method: 'POST'
|
|
handler: (request, reply) ->
|
|
logger.info 'Cookies', request.cookies
|
|
logger.info 'Body', request.body
|
|
logger.info 'Query', request.query
|
|
logger.info 'Params', request.params
|
|
|
|
reply.setCookie 'foo', 'foo'
|
|
reply.send
|
|
hello: 'world'
|