 
 # underscores is amazing, we'll be using this a lot.
 _ = require "underscore"
+
+extendify = require "./extended"
 
 # require your nedb installation
 ds = null

        # boohoo, we've got trouble.
        fn error: "No items updated, please check your id", null

module.exports = crudify
# on unsupported request methods.
crudify = (store, req, fn) ->

  ds = new extendify store
  Schema = ds.Schema

  # listen for `req.param('id')` will fallback until it finds the id
