14 lines
204 B
Go
14 lines
204 B
Go
package middleware
|
|
|
|
import (
|
|
"base-framework/pkg/router"
|
|
"base-framework/pkg/routinex"
|
|
)
|
|
|
|
func Routinex() router.HandlerFunc {
|
|
return func(c *router.Context) {
|
|
defer routinex.Clear()
|
|
c.Next()
|
|
}
|
|
}
|