Add in http monitoring

This commit is contained in:
James Allen 2014-05-07 10:59:16 +01:00
parent aed4a7ce18
commit ccbe33a82e

View file

@ -13,6 +13,8 @@ Metrics.mongodb.monitor(Path.resolve(__dirname + "/node_modules/mongojs/node_mod
app = express()
app.use Metrics.http.monitor(logger)
app.get '/project/:project_id/doc', HttpController.getAllDocs
app.get '/project/:project_id/doc/:doc_id', HttpController.getDoc
app.post '/project/:project_id/doc/:doc_id', bodyParser.json(), HttpController.updateDoc