passman/js/app/app.js
2016-09-10 13:29:23 +02:00

33 lines
616 B
JavaScript

'use strict';
/**
* @ngdoc overview
* @name passmanApp
* @description
* # passmanApp
*
* Main module of the application.
*/
angular
.module('passmanApp', [
'ngAnimate',
'ngCookies',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch',
'templates-main'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl',
controllerAs: 'main'
})
.otherwise({
redirectTo: '/'
});
}).config(['$httpProvider', function ($httpProvider) {
$httpProvider.defaults.headers.common.requesttoken = oc_requesttoken;
}]);