overleaf/services/chat/app/coffee/router.coffee
2016-12-14 17:38:14 +00:00

12 lines
349 B
CoffeeScript

MessageHttpController = require('./Features/Messages/MessageHttpController')
module.exports = Router =
route: (app) ->
app.get "/room/:project_id/messages", MessageHttpController.getMessages
app.post "/room/:project_id/messages", MessageHttpController.sendMessage
app.get "/status", (req, res, next) ->
res.send("chat is alive")