Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Compability with Express 3 #61

Closed
wants to merge 1 commit into from

2 participants

@isstaif

This should help issue #55

@tj
Owner
tj commented

it'll be more involved than that since the route removal stuff is gone, i have a branch with this going ill see how far it is from completion

@tj
Owner
tj commented

i've started support in this branch 862e1b9 if anyone wants to help, i probably wont haev time to work on it today

@tj tj closed this
@joakim joakim referenced this pull request
Closed

Compatibility with Express 3 #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 20, 2012
  1. @isstaif

    compability with Express 3

    isstaif authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 3 deletions.
  1. +2 −3 index.js
View
5 index.js
@@ -231,7 +231,7 @@ Resource.prototype.mapDefaultAction = function(key, fn){
* Setup http verb methods.
*/
-express.router.methods.concat(['del', 'all']).forEach(function(method){
+express.Router.methods.concat(['del', 'all']).forEach(function(method){
Resource.prototype[method] = function(path, fn){
if ('function' == typeof path
|| 'object' == typeof path) fn = path, path = '';
@@ -249,8 +249,7 @@ express.router.methods.concat(['del', 'all']).forEach(function(method){
* @api public
*/
-express.HTTPServer.prototype.resource =
-express.HTTPSServer.prototype.resource = function(name, actions, opts){
+express.application.resource = function(name, actions, opts){
var options = actions || {};
if ('object' == typeof name) actions = name, name = null;
if (options.id) actions.id = options.id;
Something went wrong with that request. Please try again.