-# express = require "express"
-# app = module.exports = express()
-
 util = require "util"
 _ = require "underscore"
 path = require "path"

  else
    @ds = new DataStore() 

  if opts? then _.extend @, opts

  # define our route uri w/ version, etc


  # set app to listen for all router paths
  # will fallback to `req.query` and `req.body`
  if @middleware.length > 0
    for mid in @middleware
      app.all @uri, mid
      app.all @uri + "/:id", mid

  app.all @uri, router

  # set our app to listen for :id
