{"id":7516,"date":"2015-07-18T03:25:21","date_gmt":"2015-07-18T03:25:21","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/07\/18\/how-to-make-satellizer-use-absolute-urls-open-source-projects-sahat-satellizer\/"},"modified":"2015-07-18T03:25:21","modified_gmt":"2015-07-18T03:25:21","slug":"how-to-make-satellizer-use-absolute-urls-open-source-projects-sahat-satellizer","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/07\/18\/how-to-make-satellizer-use-absolute-urls-open-source-projects-sahat-satellizer\/","title":{"rendered":"How to make satellizer use absolute url&#39;s?-open source projects sahat\/satellizer"},"content":{"rendered":"<p>I&#8217;m making a signup form using satellizer. But it does not go to the right urk<\/p>\n<p>My console displays the following<\/p>\n<p>POST http:\/\/localhost:8000\/http:\/\/104.236.150.55\/auth\/register 404 (Not Found) view2.js:185 Not found<\/p>\n<p>This is my config.js<\/p>\n<pre><code>.config(['$routeProvider', '$locationProvider', '$authProvider', function($routeProvider, $locationProvider, $authProvider) {\n    $routeProvider\n\n    \/\/for Landing page\n        .when('\/view2', {\n            templateUrl: 'view2\/view2.html',\n            controller: 'View2Ctrl'\n        })\n        .when('\/activity', {\n            templateUrl: 'view2\/activity.html',\n            controller: 'ActivityCtrl'\n        })\n        .when('\/signup', {\n            templateUrl: 'view2\/signup.html',\n            controller: 'UserCtrl'\n        });\n\n    $authProvider.signupUrl = \"http:\/\/example.com\/auth\/register\";\n\n}])<\/code><\/pre>\n<p>and my controller<\/p>\n<pre><code>.controller('UserCtrl', ['$scope', '$auth', function($scope, $auth) {\n\n        $scope.signup = function() {\n\n            var user = {\n                email: $scope.email,\n                password: $scope.password\n            };\n\n            $auth.signup(user)\n                .catch(function(response) {\n                    console.log(response.data);\n            });\n        }\n    }]);<\/code><\/pre>\n<p>How do i access them with absolute urls?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m making a signup form using satellizer. But it does not go to the right urk My console displays the following POST http:\/\/localhost:8000\/http:\/\/104.236.150.55\/auth\/register 404 (Not Found) view2.js:185 Not found This is my config.js .config([&#8216;$routeProvider&#8217;, &#8216;$locationProvider&#8217;, &#8216;$authProvider&#8217;, function($routeProvider, $locationProvider, $authProvider) { $routeProvider \/\/for Landing page .when(&#8216;\/view2&#8217;, { templateUrl: &#8216;view2\/view2.html&#8217;, controller: &#8216;View2Ctrl&#8217; }) .when(&#8216;\/activity&#8217;, { templateUrl: &#8216;view2\/activity.html&#8217;, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7516","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7516"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7516\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}