route logging scheme
This commit is contained in:
parent
e64f5dbabf
commit
0d604ef320
4 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
logger = (require 'logging').default 'info'
|
||||
logger = (require 'logging').default '/user/info'
|
||||
|
||||
# session storage (volatile data)
|
||||
session = (require '../../session')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
logger = (require 'logging').default 'login'
|
||||
logger = (require 'logging').default '/user/login'
|
||||
|
||||
# session storage (volatile data)
|
||||
session = (require '../../session')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
logger = (require 'logging').default 'logout'
|
||||
logger = (require 'logging').default '/user/logout'
|
||||
|
||||
# session storage (volatile data)
|
||||
session = (require '../../session')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
logger = (require 'logging').default 'register'
|
||||
logger = (require 'logging').default '/user/register'
|
||||
|
||||
# fftcg.db (persistent data)
|
||||
fftcgdb = (require '../../db')
|
||||
|
@ -10,7 +10,7 @@ module.exports =
|
|||
|
||||
handler: (request, reply) ->
|
||||
fftcgdb.register(request.body.login, request.body.password)
|
||||
.then (user) ->
|
||||
.then ->
|
||||
logger.info "OK '#{request.body.login}'"
|
||||
reply.send
|
||||
success: true
|
||||
|
|
Reference in a new issue