package servicecontext import ( omni "git.yuntuo.hk/k2safe/go-omni" "git.yuntuo.hk/k2safe/go-omni/httpx" ) // AppOptions runs before routes are registered. Register project error catalogs // here with omni.WithErrors. It must not create resources or another App. func(c *Context)AppOptions()[]omni.Option{return nil} // GlobalMiddleware runs for all endpoints, including App 404/405 fallbacks. // Named route middleware lives in Middlewares and is selected by the API contract. func(c *Context)GlobalMiddleware()[]httpx.Middleware{return nil}