+metrics = require("metrics-sharelatex")
+metrics.initialize("notifications")
 Settings = require 'settings-sharelatex'
 logger = require 'logger-sharelatex'
 logger.initialize("notifications-sharelatex")

	app.use express.bodyParser()
	app.use metrics.http.monitor(logger)
	app.use express.errorHandler()

app.post '/user/:user_id', controller.addNotification
app.get '/user/:user_id', controller.getUserNotifications

mongojs = require('mongojs')
db = mongojs(Settings.mongo.url, ['notifications'])
Path = require("path")

metrics.memory.monitor(logger)

HealthCheckController = require("./app/js/HealthCheckController")
