You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/js/app.ts

17 lines
998 B

12 years ago
'use strict';
declare var angular: any;
angular.module('dockerui', ['dockerui.services', 'dockerui.filters'])
.config([<any>'$routeProvider', ($routeProvider: any) => {
$routeProvider.when('/', {templateUrl: 'partials/home.html', controller: 'HomeController'});
$routeProvider.when('/containers/', {templateUrl: 'partials/containers.html', controller: 'ContainersController'});
$routeProvider.when('/containers/:id/', {templateUrl: 'partials/container.html', controller: 'ContainerController'});
$routeProvider.when('/images/', {templateUrl: 'partials/images.html', controller: 'ImagesController'});
$routeProvider.when('/images/:id/', {templateUrl: 'partials/image.html', controller: 'ImageController'});
$routeProvider.when('/settings', {templateUrl: 'partials/settings.html', controller: 'SettingsController'});
$routeProvider.otherwise({redirectTo: '/'});
}])
.constant('DOCKER_ENDPOINT', 'http://192.168.1.9:4243\:4243');