diff options
Diffstat (limited to 'route.js')
-rw-r--r-- | route.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -14,12 +14,14 @@ var handle = { '/register': pnhandler.register, '/login': pnhandler.login, '/poll': pnhandler.poll, - '/upload': pnhandler.upload + '/upload': pnhandler.upload, + '/hello': pnhandler.hello, + '/hellores': pnhandler.hellores }; -function route(query, res) { +function route(query, reqdata, res) { if (typeof handle[query.pathname] === 'function' ) { - handle[query.pathname](query, res); + handle[query.pathname](query, reqdata, res); } else { util.log('[route] no handler found for ' + query.pathname); |