mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-03-09 23:38:54 +00:00
Initial Commit
This commit is contained in:
commit
c92f737237
273 changed files with 16964 additions and 0 deletions
34
client/components/auth/auth.module.js
Normal file
34
client/components/auth/auth.module.js
Normal file
|
@ -0,0 +1,34 @@
|
|||
'use strict';
|
||||
|
||||
import angular from 'angular';
|
||||
import constants from '../../app/app.constants';
|
||||
import util from '../util/util.module';
|
||||
import ngCookies from 'angular-cookies';
|
||||
import {
|
||||
authInterceptor
|
||||
} from './interceptor.service';
|
||||
import {
|
||||
routerDecorator
|
||||
} from './router.decorator';
|
||||
import {
|
||||
AuthService
|
||||
} from './auth.service';
|
||||
import {
|
||||
UserResource
|
||||
} from './user.service';
|
||||
|
||||
import uiRouter from 'angular-ui-router';
|
||||
|
||||
function addInterceptor($httpProvider) {
|
||||
'ngInject';
|
||||
|
||||
$httpProvider.interceptors.push('authInterceptor');
|
||||
}
|
||||
|
||||
export default angular.module('app2App.auth', [constants, util, ngCookies, uiRouter])
|
||||
.factory('authInterceptor', authInterceptor)
|
||||
.run(routerDecorator)
|
||||
.factory('Auth', AuthService)
|
||||
.factory('User', UserResource)
|
||||
.config(['$httpProvider', addInterceptor])
|
||||
.name;
|
Loading…
Add table
Add a link
Reference in a new issue