express-mongoose-resource icon indicating copy to clipboard operation
express-mongoose-resource copied to clipboard

Express 3.x Support

Open jpillora opened this issue 12 years ago • 8 comments

app.resource is undefined and I presume it's because this was built for Express 2.x

jpillora avatar Nov 21 '12 13:11 jpillora

I (think I've) got it working by swapping express.HTTPServer::resource for express.application.resource though maybe other parts need to be updated ?

jpillora avatar Nov 23 '12 10:11 jpillora

Hey, sorry for the huge delay! You're right, express-mongoose-resource was built for express 2.x. Now that express-resource (which is an indirect dependency), has been updated to support express 3.x, I could try to update too, but I'd like to do so in a way to keep backward compatibility with 2.x. You could also try https://github.com/panta/express-mongoose-crud (which also targets 2.x but should be way easier to change for 3.x. And I'll do that soon).

panta avatar Mar 18 '13 13:03 panta

Hey man, it's okay, I've rolled my own since I've got a bigger project in mind, so I'm going to bake in user roles and other cool stuff :)

On Tuesday, March 19, 2013, Marco Pantaleoni wrote:

Hey, sorry for the huge delay! You're right, express-mongoose-resource was built for express 2.x. Now that express-resource (which is an indirect dependency), has been updated to support express 3.x, I could try to update too, but I'd like to do so in a way to keep backward compatibility with 2.x. You could also try https://github.com/panta/express-mongoose-crud (which also targets 2.x but should be way easier to change for 3.x. And I'll do that soon).

— Reply to this email directly or view it on GitHubhttps://github.com/panta/express-mongoose-resource/issues/2#issuecomment-15055774 .

jpillora avatar Mar 18 '13 20:03 jpillora

@panta It would be really handy if at the top of the project README it mentioned that express-mongoose-resource was built for express 2.x as I've just wasted a bunch of time trying to get it working with the latest version of express!

simonplend avatar Aug 17 '13 17:08 simonplend

@simonplend README.md then click "Edit", save then pull request

jpillora avatar Aug 18 '13 08:08 jpillora

@jpillora Fair point! Done: https://github.com/panta/express-mongoose-resource/pull/5

simonplend avatar Aug 18 '13 14:08 simonplend

Any movement on modifying express-mongoose-resource to play nice with express 3.x?

honeyd avatar Aug 30 '13 15:08 honeyd

Actually, any progress here? Or if all the authors are busy, please give some hints and I'll be happy to make it happen. I have a project with almost exact the requirement to expose mongoose resources, and I really don't want to handwrite all these boring CRUD every time.

gigix avatar Dec 01 '13 14:12 gigix