What I'm I doing wrong from the code below. I'm trying to fetch data from an API however I get a 404 not found. the URL if I hit the browser works and it's the correct URL. I have even tried adding n the full url i.e.
http://127.0.0.1:8000/api/v1/campaign/testcamp/ but this still gives me the same 404. Why?
restangular के साथ
angularjs का उपयोग कर रहा हूं:
app.controller("CampaignData" , ['$scope', 'Restangular',
$scope.campaign = campaign;