Authored by htoooth

add server apm

  1 +phantomjs_cdnurl=http://npm.taobao.org/mirrors/phantomjs
  2 +registry=http://npm.yoho.cn
@@ -20,7 +20,7 @@ const middleware = require('./middleware'); @@ -20,7 +20,7 @@ const middleware = require('./middleware');
20 20
21 app.post('/write', middleware.serverApm); 21 app.post('/write', middleware.serverApm);
22 22
23 -app.get('/apm/yas.gif', middleware.apm); 23 +app.get('/yas.gif', middleware.apm);
24 24
25 app.use('*', (req, res) => { 25 app.use('*', (req, res) => {
26 res.statusCode = 404; 26 res.statusCode = 404;
This diff could not be displayed because it is too large.
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 "request-promise": "^4.2.1", 24 "request-promise": "^4.2.1",
25 "source-map": "^0.5.7", 25 "source-map": "^0.5.7",
26 "url": "^0.11.0", 26 "url": "^0.11.0",
27 - "yoho-node-lib": "^0.5.22" 27 + "yoho-node-lib": "^0.5.24"
28 }, 28 },
29 "devDependencies": { 29 "devDependencies": {
30 "babel-core": "^6.26.0", 30 "babel-core": "^6.26.0",