diff --git a/cmd/cc-backend/main.go b/cmd/cc-backend/main.go index 6f4cd05..a70d009 100644 --- a/cmd/cc-backend/main.go +++ b/cmd/cc-backend/main.go @@ -343,7 +343,6 @@ func main() { rw.Header().Add("Content-Type", "text/html; charset=utf-8") web.RenderTemplate(rw, "404.tmpl", &web.Page{Title: "Page not found", Build: buildInfo}) }) -- secured := r.PathPrefix("/").Subrouter() diff --git a/internal/routerConfig/routes.go b/internal/routerConfig/routes.go index 2b57e89..1d67999 100644 --- a/internal/routerConfig/routes.go +++ b/internal/routerConfig/routes.go @@ -2,6 +2,7 @@ // All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. +// TODO : Here is the route config package routerConfig import ( @@ -47,11 +48,11 @@ var routes []Route = []Route{ {"/monitoring/control/{cluster}", "monitoring/control.tmpl", "Status of <ID> - ClusterCockpit", false, setupClusterRoute}, {"/monitoring/partition/{cluster}", "partitions/systems.tmpl", "Cluster <ID> - ClusterCockpit", false, setupClusterRoute}, {"/monitoring/history/", "monitoring/history.tmpl", "Cluster <ID> - ClusterCockpit", false, setupClusterRoute}, - - - } + + + func setupHomeRoute(i InfoType, r *http.Request) InfoType { jobRepo := repository.GetJobRepository() groupBy := model.AggregateCluster