mirror of
https://github.com/nextcloud/passman.git
synced 2025-01-19 05:37:44 +08:00
33 lines
616 B
JavaScript
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;
|
|
}]);
|