Hi guys,
I had the same issue when working on django, but adding slash and space at 
the end worked for me.

$resource('/api/charts/:chartId/ ");

On Saturday, May 26, 2012 6:51:57 PM UTC, Matias wrote:
>
> 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.
>
> Am I missing something?
>
> Thanks a lot for your help.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to