From 9ce893b1e3fe6fdde9973f7941d5e775e1a5f5cd Mon Sep 17 00:00:00 2001
From: sanjay7178 <saisanjay7660@gmail.com>
Date: Sat, 1 Jun 2024 11:11:52 +0530
Subject: [PATCH] chore: Add 404 page for not found routes

---
 cmd/cc-backend/main.go          | 1 -
 internal/routerConfig/routes.go | 7 ++++---
 2 files changed, 4 insertions(+), 4 deletions(-)

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