This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$resource POST removing trailing slash #992
Closed
Description
I have a module where I define a service like this:
.factory("Charts", function ($resource) {
return $resource("/api/charts/:chartId", {
}, {});
})
Then, on the controller I do:
var chart = new Charts({
name:$scope.name,
query:$scope.query,
since:$scope.since,
since_unit:$scope.since_unit,
interval:$scope.interval
}
);
chart.$save();
And on the server I'm receiving the POST to /api/charts instead of /api/charts/ that is what (I think) it should be.
There is a discussion in the list:
https://groups.google.com/forum/?fromgroups#!topic/angular/taypgj_D3YQ