mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
fix MockFileStoreApi to record uploaded files
This commit is contained in:
@@ -8,8 +8,11 @@ module.exports = MockFileStoreApi =
|
||||
app.post "/project/:project_id/file/:file_id", (req, res, next) =>
|
||||
req.on 'data', ->
|
||||
|
||||
req.on 'end', ->
|
||||
res.send 200
|
||||
req.on 'end', =>
|
||||
{project_id, file_id} = req.params
|
||||
@files[project_id] ?= {}
|
||||
@files[project_id][file_id] = { content : "test-file-content" }
|
||||
res.sendStatus 200
|
||||
|
||||
app.listen 3009, (error) ->
|
||||
throw error if error?
|
||||
|
||||
Reference in New Issue
Block a user