2018-12-27 11:54:16 +00:00
|
|
|
import {ng} from 'core/vendor';
|
2018-02-10 15:18:01 +00:00
|
|
|
import 'core';
|
|
|
|
|
|
|
|
let ngModule = ng.module('vnAuth', ['vnCore']);
|
|
|
|
export default ngModule;
|
2017-01-31 13:13:06 +00:00
|
|
|
|
|
|
|
config.$inject = ['$translatePartialLoaderProvider', '$httpProvider'];
|
|
|
|
export function config($translatePartialLoaderProvider, $httpProvider) {
|
2017-01-31 15:09:46 +00:00
|
|
|
$translatePartialLoaderProvider.addPart('auth');
|
2017-01-31 13:13:06 +00:00
|
|
|
|
|
|
|
$httpProvider.defaults.useXDomain = true;
|
|
|
|
delete $httpProvider.defaults.headers.common['X-Requested-With'];
|
|
|
|
}
|
2017-05-17 19:23:47 +00:00
|
|
|
ngModule.config(config);
|