server/bo_client/app/adapters/application.js
author ymh <ymh.work@gmail.com>
Sat, 06 Aug 2016 21:29:33 +0700
changeset 261 02e2396bcbbc
parent 107 16e1473a6a99
child 263 3deace9204de
permissions -rw-r--r--
Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)

import RESTAdapter from 'ember-data/adapters/rest';
import ENV from 'bo-client/config/environment';

export default RESTAdapter.extend({
  namespace: ENV.baseURL.replace(/\/$/,"")+'/api/v1',
  //TODO: pass this as configuration
  //host: 'http://localhost:8000'
});