Comment out routes et handlers pour a-propos et actualite
This commit is contained in:
parent
2fc8120bb6
commit
5242b263b8
2 changed files with 10 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue