mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-30 10:35:23 +08:00
added domain error handling to requests and modules
This commit is contained in:
6
test-app/node_modules/hello.js
generated
vendored
6
test-app/node_modules/hello.js
generated
vendored
@@ -7,8 +7,12 @@ function Hello(settings) {
|
||||
util.inherits(Hello, Resource);
|
||||
module.exports = Hello;
|
||||
|
||||
setTimeout(function () {
|
||||
flarg();
|
||||
}, 100);
|
||||
|
||||
Hello.prototype.handle = function (ctx, next) {
|
||||
if(ctx.req && ctx.req.method !== 'GET') return next();
|
||||
|
||||
|
||||
ctx.done(null, {hello: 'world'});
|
||||
};
|
||||
Reference in New Issue
Block a user