Closed todk closed 7 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 + "')";
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 + "')";
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!
Thank you, I believe this was fixed in #24
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!