Ajouter render pour routes principales #29

Merged
vlbeaudoin merged 5 commits from feature/render-routes into main 2023-03-24 20:09:49 -04:00
Showing only changes of commit 0a6961e338 - Show all commits

View file

@ -46,6 +46,8 @@ func Execute() {
// Static Routes // Static Routes
e.GET("/static/general.css", handleStaticCSSGeneral)
e.GET("/static/index.css", handleStaticCSSIndex) e.GET("/static/index.css", handleStaticCSSIndex)
// HTML Routes // HTML Routes
@ -123,3 +125,9 @@ func handleStaticCSSIndex(c echo.Context) error {
data, _ := embedFS.ReadFile("css/index.css") data, _ := embedFS.ReadFile("css/index.css")
return c.Blob(http.StatusOK, "text/css", data) return c.Blob(http.StatusOK, "text/css", data)
} }
func handleStaticCSSGeneral(c echo.Context) error {
// TODO Ajouter gestion d'erreurs
data, _ := embedFS.ReadFile("css/general.css")
return c.Blob(http.StatusOK, "text/css", data)
}