overleaf/services/chat/app/coffee/router.coffee

13 lines
349 B
CoffeeScript
Raw Normal View History

2014-08-15 05:50:36 -04:00
MessageHttpController = require('./Features/Messages/MessageHttpController')
module.exports = Router =
route: (app) ->
2014-08-15 05:50:36 -04:00
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")