question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom endpoint path ignored

See original GitHub issue
import Ember from 'ember';
import AjaxService from 'ember-ajax/services/ajax';

export default AjaxService.extend({
  namespace: '/api/v1',
  host: 'http://api.example.com'
});
import Ember from 'ember';

export default Ember.Route.extend({
  ajax: Ember.inject.service(),
  model() {
    return this.get('ajax').request('/posts');
  }
});

Results in: GET http://api.example.com/posts without namespace.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alexlafrosciacommented, Mar 2, 2016

Namespace support only landed in 2.0.0-beta.2. Please update to the latest beta and let us know if that takes care of it.

0reactions
sarjanencommented, Mar 2, 2016

@alexlafroscia my bad, namespace works in 2.0.0-beta.2. Haha thanks @taras 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

[@aws-sdk/client-sns]: custom endpoint.path is not taken into ...
This was previously reported and fixed in some parts of v2: Node API requests ignore the endpoint.path property aws-sdk-js#268; This might be a...
Read more >
Ignore context-path for specific endpoint in Spring boot
I have setup the property server.servlet.context-path=/xyz in the application.properties file so all my endpoint have a prefix of /xyz.
Read more >
Support custom trace ignore - Apache SkyWalking
The purpose of this plugin is to filter endpoint which are expected to be ignored by the tracing system. You can setup multiple...
Read more >
Path resolution in Quarkus
This was the genesis of the non-application endpoint path. ... while JAX-RS effectively ignores leading slashes in @Path annotations.
Read more >
Versioning and Endpoint Handling - Tyk.io
Extended paths allow you to control which upstream paths are to be handled in a specific way (ignored, as part of white list...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found