mirror of
https://github.com/flarum/core.git
synced 2025-07-25 18:51:40 +02:00
More flexible API URL (necessary for testing)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import JsonApiAdapter from 'ember-json-api/json-api-adapter';
|
||||
import config from '../config/environment';
|
||||
|
||||
export default JsonApiAdapter.extend({
|
||||
|
||||
// Todo: make this loaded via an environment variable or something
|
||||
host: '/api'
|
||||
host: config.apiURL
|
||||
|
||||
});
|
Reference in New Issue
Block a user