When I run my karma tests, I keep getting the following WARN errors.
WARN [web-server]: 404: /api/my_example_endpoint
WARN [web-server]: 404: /api/my_example_endpoint
WARN [web-server]: 404: /api/my_example_endpoint
WARN [web-server]: 404: /api/my_example_endpoint
This my_example_endpoint is being called from a UI-router resolve for all views. Something like...
.state('global', {
abstract: true,
resolve: {
exampleResolve: function(MyExampleService) {
// this calls the '/api/my_example_endpoint' endpoint
return MyExampleService.getGlobalData();
}
},
//....
})
How can I fix this WARN error?
Aucun commentaire:
Enregistrer un commentaire