Retirer pages hors du scope du projet #94

Merged
vlbeaudoin merged 2 commits from breaking/combine-pages into main 2023-08-11 22:37:49 -04:00
4 changed files with 10 additions and 6 deletions

View file

@ -214,11 +214,11 @@ func RunServer() {
e.GET("/", handleIndex)
e.GET("/a-propos", handleAPropos)
//e.GET("/a-propos", handleAPropos)
e.GET("/actualite", handleActualite)
//e.GET("/actualite", handleActualite)
e.GET("/actualite/:article", handleActualiteArticle)
//e.GET("/actualite/:article", handleActualiteArticle)
e.GET("/vie-etudiante", handleVieEtudiante)
@ -254,18 +254,24 @@ func handleIndex(c echo.Context) error {
return c.Render(http.StatusOK, "index-html", nil)
}
/*
func handleAPropos(c echo.Context) error {
return c.Render(http.StatusOK, "a-propos-html", nil)
}
*/
/*
func handleActualite(c echo.Context) error {
return c.Render(http.StatusOK, "actualite-html", nil)
}
*/
/*
func handleActualiteArticle(c echo.Context) error {
article := c.Param("article")
return c.String(http.StatusOK, fmt.Sprintf("Article: %s", article))
}
*/
func handleVieEtudiante(c echo.Context) error {
return c.Render(http.StatusOK, "vie-etudiante-html", nil)

View file

@ -2,9 +2,7 @@
<div class="header">
<ul class="headerMenu">
<li class="headerMenuElement"><a href="/">index</a></li>
<li class="headerMenuElement"><a href="/a-propos">À propos</a></li>
<li class="headerMenuElement"><a href="/actualite">Actualité</a></li>
<li class="headerMenuElement"><a href="/">AGECEM</a></li>
<li class="headerMenuElement"><a href="/vie-etudiante">Vie étudiante</a></li>
<li class="headerMenuElement"><a href="/documentation">Documentation</a></li>
<li class="headerMenuElement"><a href="/formulaires">Formulaires</a></li>