portainer/app/app.js

19 lines
1.4 KiB
JavaScript
Raw Normal View History

2013-06-09 00:12:14 +00:00
'use strict';
2013-06-09 01:20:29 +00:00
2014-11-12 17:31:27 +00:00
angular.module('dockerui', ['ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard'])
2013-06-09 01:20:29 +00:00
.config(['$routeProvider', function ($routeProvider) {
2014-11-12 17:31:27 +00:00
$routeProvider.when('/', {templateUrl: 'app/components/dashboard/dashboard.html', controller: 'DashboardController'});
2013-06-09 01:20:29 +00:00
$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: '/'});
}])
2013-06-10 12:59:57 +00:00
// This is your docker url that the api will use to make requests
// You need to set this to the api endpoint without the port i.e. http://192.168.1.9
.constant('DOCKER_ENDPOINT', '/dockerapi')
2013-06-23 18:44:46 +00:00
.constant('DOCKER_PORT', '') // Docker port, leave as an empty string if no port is requred. If you have a port, prefix it with a ':' i.e. :4243
.constant('UI_VERSION', 'v0.4')
2013-12-16 21:40:10 +00:00
.constant('DOCKER_API_VERSION', 'v1.8');