mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
12 lines
349 B
CoffeeScript
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")
|
|
|
|
|
|
|