Ajouter route /static/general.css
This commit is contained in:
parent
a7334f4e0f
commit
0a6961e338
1 changed files with 8 additions and 0 deletions
|
@ -46,6 +46,8 @@ func Execute() {
|
|||
|
||||
// Static Routes
|
||||
|
||||
e.GET("/static/general.css", handleStaticCSSGeneral)
|
||||
|
||||
e.GET("/static/index.css", handleStaticCSSIndex)
|
||||
|
||||
// HTML Routes
|
||||
|
@ -123,3 +125,9 @@ func handleStaticCSSIndex(c echo.Context) error {
|
|||
data, _ := embedFS.ReadFile("css/index.css")
|
||||
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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue