mirror of https://github.com/nextcloud/contacts
31 lines
832 B
JavaScript
31 lines
832 B
JavaScript
/**
|
|
* 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'));
|
|
|
|
});
|