From 54793b3731c59b69afb9ff5832cc83265aeb0f6d Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Sun, 22 Oct 2023 00:52:58 -0400 Subject: [PATCH] remove unused routes --- cmd/main.go | 2 -- pkg/pages/index.go | 8 -------- 2 files changed, 10 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 8212556..03bb914 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -39,8 +39,6 @@ func main() { e.Static("/static", "static") e.GET("/", pages.Index) - e.GET("/projects", pages.Projects) - e.GET("/about-me", pages.AboutMe) e.Logger.Fatal(e.Start(":5173")) } diff --git a/pkg/pages/index.go b/pkg/pages/index.go index d8640f5..36830ad 100644 --- a/pkg/pages/index.go +++ b/pkg/pages/index.go @@ -9,11 +9,3 @@ type Page struct {} func Index(c echo.Context) error { 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{}) -}