j-mcnally / ember-cli-chrome

A small and growing toolkit to build chrome extensions with EmberJS
62 stars 12 forks source link

Any tips on using ember-data? #15

Closed lcpriest closed 8 years ago

lcpriest commented 8 years ago

I have a webapp and a chrome extension that will use the same server The chrome extension is being a little bit funky with regards to where it is posting stuff.

chrome-extension://gbegiomkkbgmkelmdacomkabnpbkcbca/api/users/sessions

lcpriest commented 8 years ago

The answer is 'set a rootUrl in the environment.js`.

const Router = Ember.Router.extend({
  location: config.locationType,
  rootUrl: 'http://www.lvh.me:4200',
});