   #删除数据
   app.delete "#{path}/:id", (req, res, next)->
     _project.remove
+###
 
 #响应404错误
 response404 = (req, res, next)->
+  res.statusCode = 404
+  res.end('404 Not Found')
 
 #响应403权限错误
 response403 = (req, res, next)->
+  res.statusCode = 403
+  res.end('')
 
 #权限校验
 checkAuthority = (req, res, next)->

  #删除数据
  app.delete "#{path}/:id", (req, res, next)->

#项目的路由
projectRounter = (app)->
  #获取project信息


  #校验校验权限

  apiRoot = "/api/"
  mapping = [
      path: "#{apiRoot}project"
      biz: "project"
    ,
      #素材
      path: "#{apiRoot}project/:project_id/asset"
      ### paths
      paths:
        post: "post path"
        get: "get path"
      ###
      biz: "asset"
      methods:
        post: "uploadFile"
        delete: false
        put: false
    ,
      #查看素材
      path: "assets/:project_id/:file",
      biz: "asset"
      methods:
        get: "readFile"
        put: false,
        post: false,
        delete: false
    ,
      path: "#{apiRoot}project/:project_id/issue"
      biz: "issue"
    ,
      path: "#{apiRoot}issue/:issue_id/comment"
      biz: "comment"
  ]

  mapping.forEach (map)->
    apiRouterTo app, map

  app.get "*", response404

  #require('fs').renameSync '/Users/conis/WorkStation/BHF/src/uploads/2692-10y4zi.png', '/Users/conis/WorkStation/BHF/src/assets/2692-10y4zi.png'
  ###
  return
  mapping =
    "project": "project"
    "issue": "project/:project_id/issue"
    "comment": "issue/:issue_id/comment"
    "asset": "project/:project_id/asset"

  for key, path of mapping
    biz = require "./biz/#{key}"
    apiRouter biz, path, app
###