blob: ade26d2ba869f3d5f2eec96912dc6e231dfe8038 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/**
* Nextcloud - contacts
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Hendrik Leppelsack <hendrik@leppelsack.de>
* @copyright Hendrik Leppelsack 2015
*/
angular.module('contactsApp', ['uuid4', 'angular-cache', 'ngRoute', 'ui.bootstrap', 'ui.select', 'ngSanitize', 'angular-click-outside', 'ngclipboard'])
.config(function($routeProvider) {
$routeProvider.when('/:gid', {
template: '<contactdetails></contactdetails>'
});
$routeProvider.when('/contact/:uid', {
redirectTo: function(parameters) {
return '/' + t('contacts', 'All contacts') + '/' + parameters.uid;
}
});
$routeProvider.when('/:gid/:uid', {
template: '<contactdetails></contactdetails>'
});
$routeProvider.otherwise('/' + t('contacts', 'All contacts'));
});
|