     delete: "/:id(\\d+)"
 
   ["post", "get", "put", "delete"].forEach (method)->
-    path = (map.paths && map.paths[method]) || "#{map.path}#{pathPuffix[method]}"
+    path = (router.paths && router.paths[method]) || (()->
+      #如果有fullPath，则返回fullPath，否则重新组装path
+      return router.fullPath || "#{_config.rootAPI}#{router.path}#{pathPuffix[method]}"
+    )()
+    console.log path
     paths[method] = path    #"/api/#{path}"
   paths
 
-apiRouterTo = (app, map)->
-  biz = require "./biz/#{map.biz}"
-  paths = getPaths(map)
+apiRouter = (app, router)->
+  biz = require "./biz/#{router.biz}"
+  paths = getPaths(router)
 
   ["get", "post", "delete", "put"].forEach (method)->
     path = paths[method]
     #如果在map中，有指定业务逻辑的处理方法，则交给业务逻辑处理
-    specialMethod = (map.methods || {})[method]
+    specialMethod = (router.methods || {})[method]
     #如果指定的方法为false，则不处理这个method
     return if specialMethod is false
     #由业务逻辑指定的处理处理

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

            res.end()
          break


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