remove unused routes
This commit is contained in:
parent
55dfafe7ed
commit
54793b3731
2 changed files with 0 additions and 10 deletions
|
|
@ -39,8 +39,6 @@ func main() {
|
||||||
e.Static("/static", "static")
|
e.Static("/static", "static")
|
||||||
|
|
||||||
e.GET("/", pages.Index)
|
e.GET("/", pages.Index)
|
||||||
e.GET("/projects", pages.Projects)
|
|
||||||
e.GET("/about-me", pages.AboutMe)
|
|
||||||
|
|
||||||
e.Logger.Fatal(e.Start(":5173"))
|
e.Logger.Fatal(e.Start(":5173"))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,3 @@ type Page struct {}
|
||||||
func Index(c echo.Context) error {
|
func Index(c echo.Context) error {
|
||||||
return c.Render(200, "index.html", Page{})
|
return c.Render(200, "index.html", Page{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func Projects(c echo.Context) error {
|
|
||||||
return c.Render(200, "projects-only.html", Page{})
|
|
||||||
}
|
|
||||||
|
|
||||||
func AboutMe(c echo.Context) error {
|
|
||||||
return c.Render(200, "about-me.html", Page{})
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue