summaryrefslogtreecommitdiffstats
path: root/route.js
diff options
context:
space:
mode:
Diffstat (limited to 'route.js')
-rw-r--r--route.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/route.js b/route.js
index e8f614f..9a47ff5 100644
--- a/route.js
+++ b/route.js
@@ -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);