This commit is contained in:
2024-11-17 13:42:58 +08:00
parent 2d741a3f0f
commit 983cde2c7d
7 changed files with 106 additions and 33 deletions

View File

@@ -2,9 +2,11 @@ package config
import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
)
func Route(app *echo.Echo) {
// here is the route for our site
app.File("/", "FrontEnd/index.html")
staticFiles := app.Group("/")
staticFiles.Use(middleware.Static("./FrontEnd"))
}