pofider / node-simple-odata-server

Simple OData server for node.js
MIT License
97 stars 60 forks source link

insert.js -- missing 2 /'s #17

Closed todk closed 7 years ago

todk commented 8 years ago

lines 42 and 43 are missing a / between cfg.serviceUrl and req.params.collection

current lines 42 and 43: entity["@odata.id"] = cfg.serviceUrl + req.params.collection + "/('" + entity._id + "')"; entity["@odata.editLink"] = cfg.serviceUrl + req.params.collection + "/('" + entity._id + "')";

suggested (works for me anyway) entity["@odata.id"] = cfg.serviceUrl + "/" + req.params.collection + "/('" + entity._id + "')"; entity["@odata.editLink"] = cfg.serviceUrl + "/" + req.params.collection + "/('" + entity._id + "')";

otherwise, this is nifty server. thanks!

pofider commented 7 years ago

Thank you, I believe this was fixed in #24