mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
a85f5fae35
no issue - fix lint errors in lib/gh-koenig - fix ghost:base eslint errors - update ember plugin refs, remove ember-suave plugin refs - remove old jshint refs - add `lint:js` script - switch to `eslint-plugin-ghost` extending `plugin:ghost/ember`
18 lines
605 B
JavaScript
18 lines
605 B
JavaScript
import Configuration from 'ember-simple-auth/configuration';
|
|
import ENV from '../config/environment';
|
|
import ghostPaths from '../utils/ghost-paths';
|
|
import setupSession from 'ember-simple-auth/initializers/setup-session';
|
|
import setupSessionService from 'ember-simple-auth/initializers/setup-session-service';
|
|
|
|
export default {
|
|
name: 'ember-simple-auth',
|
|
initialize(registry) {
|
|
let config = ENV['ember-simple-auth'] || {};
|
|
config.baseURL = ghostPaths().adminRoot;
|
|
Configuration.load(config);
|
|
|
|
setupSession(registry);
|
|
setupSessionService(registry);
|
|
}
|
|
};
|