()
| 169 | } |
| 170 | |
| 171 | func init() { |
| 172 | if !rules.RegisterHandler("api", NewHandler(true)) { |
| 173 | panic("failed to register api handler") |
| 174 | } |
| 175 | if !rules.RegisterHandler("local_api", NewHandler(false)) { |
| 176 | panic("failed to register local_api handler") |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | func NoCache() gin.HandlerFunc { |
| 181 | return func(c *gin.Context) { |
nothing calls this directly
no test coverage detected