vendredi 8 juin 2018

Ember.js - get value of `--proxy` parameter passed into `ember server`

I need my Ember app to make an AJAX request to the API backend it is proxying to. I have some kludgy code that inserts one of several hard-coded values but I'd much rather the AJAX request just grabs the value passed into --proxy when I run ember server.

Does anyone know if there's a way to retrieve this value from within Ember?




Aucun commentaire:

Enregistrer un commentaire