mirror of
https://github.com/ZSCNetSupportDept/scheduler.git
synced 2025-10-29 04:55:04 +08:00
修改
This commit is contained in:
12
route/middleware.go
Normal file
12
route/middleware.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package route
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/labstack/echo/v4/middleware"
|
||||
)
|
||||
|
||||
func Middleware(app *echo.Echo) {
|
||||
//here are middlewares we use
|
||||
app.Use(middleware.Logger())
|
||||
app.Use(middleware.Recover())
|
||||
}
|
||||
Reference in New Issue
Block a user