Hi,
following the sample:
var forums = app.resource('forums', require('./routes/forums'));
I can do:
curl -i localhost:3000/forums
how to put the forums behind a path, say:
oh, found it, it should have been:
var forums = app.resource('api/forums', require('./routes/forums'));
why following does not work:
var forums = app.resource('/api/forums', require('./routes/forums'));
Hi, following the sample: var forums = app.resource('forums', require('./routes/forums')); I can do: curl -i localhost:3000/forums how to put the forums behind a path, say:
curl -i localhost:3000/api/forums ? possible?
angelo