             res.json results
           break
         when "post", "put"
+          #return console.log data
           #保存数据
           biz.save data, (err, new_id)->
             res.json {id: new_id}

    delete: "/:id(\\d+)"

  ["post", "get", "put", "delete"].forEach (method)->
    path = (map.paths && map.paths[method]) || "#{map.path}#{pathPuffix[method]}"
    paths[method] = path    #"/api/#{path}"
  paths

apiRouterTo = (app, map)->
  biz = require "./biz/#{map.biz}"
  paths = getPaths(map)

  ["get", "post", "delete", "put"].forEach (method)->
    path = paths[method]
    #如果在map中，有指定业务逻辑的处理方法，则交给业务逻辑处理
    specialMethod = (map.methods || {})[method]
    #如果指定的方法为false，则不处理这个method
    return if specialMethod is false
    #由业务逻辑指定的处理处理

            res.end()
          break


#响应404错误
response404 = (req, res, next)->
