mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 17:02:27 +00:00
15 lines
372 B
CoffeeScript
15 lines
372 B
CoffeeScript
express = require("express")
|
|
app = express()
|
|
|
|
module.exports = MockDocUpdaterApi =
|
|
run: () ->
|
|
app.post "/project/:project_id/flush", (req, res, next) =>
|
|
res.sendStatus 200
|
|
|
|
app.listen 3003, (error) ->
|
|
throw error if error?
|
|
.on "error", (error) ->
|
|
console.error "error starting MockDocUpdaterApi:", error.message
|
|
process.exit(1)
|
|
|
|
MockDocUpdaterApi.run()
|