From 999d36bc8ba77576200f6cf1c491d4ba49e3a316 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Tue, 21 Mar 2023 20:26:39 -0400 Subject: [PATCH] =?UTF-8?q?S=C3=A9parer=20routes=20statiques=20et=20html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Déplacer définition de /static/index.css vers section commentaire `//Static Routes` --- server.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.go b/server.go index 09cebfb..5b35034 100644 --- a/server.go +++ b/server.go @@ -43,10 +43,13 @@ func Execute() { e.GET("/v1", handleV1) + // Static Routes + + e.GET("/static/index.css", handleStaticCSSIndex) + // HTML Routes e.GET("/", handleIndex) - e.GET("/static/index.css", handleStaticCSSIndex) e.Logger.Fatal(e.Start(":8080")) }