소스 검색

add status code

dotos 9 년 전
부모
커밋
b1368d2844
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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/) {
         return res.send({
+            code:200,
             info: 'Please Set URL Like This: ' + protocol + '://' + host + '/v1/?url=http[s]://YourWantProxyUrl.com'
         });
     }