Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4836

Problem with mirage on apache server

$
0
0

@Alessio_Varalta wrote:

Hi, I have a simple ember application on a apache server. This application work perfectly on local but when i put on the server I have a problem with the login. My application use mirage is only for testing, so mirage work on local but not online seems for this function.

I have a app/service/auth.js that call mirage

return this.get('store').queryRecord('user', { filter: { email: user } }).then(function(users) {

in mirage I have in config.js this function

this.get('/users', function(db, request) { let users = [];

if(Ember.isEmpty(request.queryParams)) {
    users = db.users;
} else {
    let email = request.queryParams['filter[email]'];

    users = db.users.where({email: email});
}

return {
    users: users
};
});

PROBLEM: http://88.198.133.195/users?filter%5Bemail%5D=alessiovavalta%40gmail.it 404 (Not Found)

I don't understand why..in local work...Thanks in advance for advice

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles