When calling rest.rester(), if you set the value of options.context to a blank string, or leave it out of the options object altogether, the internal context is set to '/api'. So:
rest.rester({context: ""}); // context is set to '/api'
rest.rester({logger: "connect-rest"}); // context is set to '/api'
This works, however:
rest.context(''); // context is set to ''
The problem occurs on line 209 of connect-rest.js:
exports.context( options.context || '/api' );
I'd submit a pull request except that I can't figure out what the intent of that code is. ;-)
When calling rest.rester(), if you set the value of options.context to a blank string, or leave it out of the options object altogether, the internal context is set to '/api'. So:
This works, however:
The problem occurs on line 209 of connect-rest.js:
I'd submit a pull request except that I can't figure out what the intent of that code is. ;-)
-Steve