15 lines
458 B
JavaScript
15 lines
458 B
JavaScript
import {ng} from 'vendor';
|
|
import 'core';
|
|
|
|
let ngModule = ng.module('vnAuth', ['vnCore']);
|
|
export default ngModule;
|
|
|
|
config.$inject = ['$translatePartialLoaderProvider', '$httpProvider'];
|
|
export function config($translatePartialLoaderProvider, $httpProvider) {
|
|
$translatePartialLoaderProvider.addPart('auth');
|
|
|
|
$httpProvider.defaults.useXDomain = true;
|
|
delete $httpProvider.defaults.headers.common['X-Requested-With'];
|
|
}
|
|
ngModule.config(config);
|