feat(middlewares): middleware struct interface

This commit is contained in:
Guz
2024-10-17 23:46:52 -03:00
parent 65e34b4e29
commit f3f060ddc8

View File

@@ -9,6 +9,10 @@ import (
type Middleware func(next http.Handler) http.Handler
type MiddlewareStruct interface {
Wrap(next http.Handler) http.Handler
}
type MiddlewaredReponse struct {
w http.ResponseWriter
statuses []int