mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-03 11:53:17 +00:00
Add in http monitoring
This commit is contained in:
parent
aed4a7ce18
commit
ccbe33a82e
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue