mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-28 12:35:03 +08:00
18 lines
395 B
Go
18 lines
395 B
Go
package route
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
"github.com/labstack/echo/v4/middleware"
|
|
"zsxyww.com/scheduler/handler"
|
|
)
|
|
|
|
func Route(app *echo.Echo) {
|
|
// here is the route for our site
|
|
staticFiles := app.Group("/*")
|
|
staticFiles.Use(middleware.Static("./FrontEnd"))
|
|
|
|
api := app.Group("/api/")
|
|
api.GET("getAssignment", handler.GetAssignment)
|
|
api.GET("test", handler.HandlerTest)
|
|
}
|