Aurelia http帖子返回404

时间:2015-03-24 10:26:04

标签: javascript http-status-code-404 aurelia

嗨我在aurelia发帖有问题。我的/api/user/loginCtrl.php返回404错误,我正在做一些测试,并得到它返回2oo。但我需要这个帖子,因为是登录,你可以帮我吗?我找不到错误

var loginData = {
           userLogin:    validator.trimString(this.userLogin),
           userPassword: validator.trimString(this.userPassword),
           uuid:         validator.getUUID()
       };


       var httpObj = new HttpClient().configure(x => {
           x.withHeader('Content-Type', 'application/json');
           //x.withHeader("Content-Type", "application/x-www-form-urlencoded");
       });

       httpObj.post('../api/user/loginCtrl.php',loginData).then(response => {
       //this.phones = response.content;
       });

0 个答案:

没有答案