Browse Source

add status code

dotos 9 years ago
parent
commit
b1368d2844
1 changed files with 1 additions and 0 deletions
  1. 1 0
      routes/v1.js

+ 1 - 0
routes/v1.js

@@ -20,6 +20,7 @@ router.get('/', function(req, res, next) {
 
 
     if (req.originalUrl == /v1/) {
     if (req.originalUrl == /v1/) {
         return res.send({
         return res.send({
+            code:200,
             info: 'Please Set URL Like This: ' + protocol + '://' + host + '/v1/?url=http[s]://YourWantProxyUrl.com'
             info: 'Please Set URL Like This: ' + protocol + '://' + host + '/v1/?url=http[s]://YourWantProxyUrl.com'
         });
         });
     }
     }