
remove node modules make new data file for web ui initial commit of dashboard switch back to non SSL request move port splitting to common place; add to node resource location Signed-off-by: Patrick Reilly <patrick@kismatic.io> various path fixes make svg path relative work around missing mime type Signed-off-by: Patrick Reilly <patrick@kismatic.io> fix paths fix karma path remove bad protractor test
30 lines
785 B
JavaScript
30 lines
785 B
JavaScript
angular.module('kubernetesApp.config', []);
|
|
angular.module('kubernetesApp.services', ['kubernetesApp.config']);
|
|
|
|
app.config([
|
|
'$routeProvider',
|
|
function($routeProvider) {
|
|
$routeProvider.when("/404", {templateUrl: "views/partials/404.html"})
|
|
// else 404
|
|
.otherwise({redirectTo: "/404"});
|
|
}
|
|
])
|
|
.config([
|
|
'$routeProvider',
|
|
'manifestRoutes',
|
|
function($routeProvider, manifestRoutes) {
|
|
angular.forEach(manifestRoutes, function(r) {
|
|
var route = {
|
|
templateUrl: r.templateUrl
|
|
};
|
|
if (r.controller) {
|
|
route.controller = r.controller;
|
|
}
|
|
if (r.css) {
|
|
route.css = r.css;
|
|
}
|
|
$routeProvider.when(r.url, route);
|
|
});
|
|
}
|
|
]);
|