This commit is contained in:
2023-07-18 16:01:34 +02:00
parent 8d0ef0f002
commit ec62ad436f
2 changed files with 7 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package ginext
import (
"github.com/gin-gonic/gin"
"net/http"
"time"
)
@@ -45,3 +46,7 @@ func NewEngine(allowCors bool, ginDebug bool, returnRawErrors bool, timeout time
return wrapper
}
func (w *GinWrapper) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
w.engine.ServeHTTP(writer, request)
}