中间件定义好后 必须在main函数中注册才能使用
譬如
func main() { goft.Ignite(). Attach(middlewares.NewTokenCheck()). Mount("v1",controllers.NewIndexController()). Launch() }
最后更新于3年前