瀏覽代碼

Add project_id to the entities payload

Shane Kilkelly 8 年之前
父節點
當前提交
08263180fa
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/web/app/coffee/Features/Project/ProjectController.coffee

+ 1 - 1
services/web/app/coffee/Features/Project/ProjectController.coffee

@@ -167,7 +167,7 @@ module.exports = ProjectController =
 								path: e.path,
 								path: e.path,
 								type: if e.doc? then 'doc' else 'file'
 								type: if e.doc? then 'doc' else 'file'
 							}
 							}
-						res.json({entities: entities})
+						res.json({project_id: project_id, entities: entities})
 
 
 	projectListPage: (req, res, next)->
 	projectListPage: (req, res, next)->
 		timer = new metrics.Timer("project-list")
 		timer = new metrics.Timer("project-list")