visionmedia / express-resource

Resourceful routing for Express
1.41k stars 140 forks source link

'Mount' point for .resource()? #71

Closed floatingLomas closed 11 years ago

floatingLomas commented 11 years ago

Is there a way - other than mounting it as a 'sub-app' - to provide a root mount point for express-resource? I want all the resources to live at /api/{resources}, but I can't seem to find a way that feels 'right' to accomplish this.

tj commented 11 years ago

I dont think we have any prefixing right now, but that's effectively all a sub-app is

floatingLomas commented 11 years ago

Cool. The sub-app approach worked perfectly for what I was trying to do.