mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-28 20:45:05 +08:00
改善
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user