satellizer を使用して登録フォームを作成しています。しかし、それは正しいURLに行きません
私のコンソールには次のように表示されます。
POST http://localhost:8000/http://104.236.150.55/auth/register 404 (見つかりません) view2.js:185 見つかりません
これは私のconfig.jsです:
.config(['$routeProvider', '$locationProvider', '$authProvider', function($routeProvider, $locationProvider, $authProvider) {
$routeProvider
//for Landing page
.when('/view2', {
templateUrl: 'view2/view2.html',
controller: 'View2Ctrl'
})
.when('/activity', {
templateUrl: 'view2/activity.html',
controller: 'ActivityCtrl'
})
.when('/signup', {
templateUrl: 'view2/signup.html',
controller: 'UserCtrl'
});
$authProvider.signupUrl = "http://example.com/auth/register";
}])
そして私のコントローラー:
.controller('UserCtrl', ['$scope', '$auth', function($scope, $auth) {
$scope.signup = function() {
var user = {
email: $scope.email,
password: $scope.password
};
$auth.signup(user)
.catch(function(response) {
console.log(response.data);
});
}
}]);
絶対 URL でそれらにアクセスするにはどうすればよいですか?