Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
komuw committed Aug 17, 2024
1 parent e82feae commit 7d45042
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ const (
allowHeader = "Allow"
)

// TODO: remove
func todoRemove(w http.ResponseWriter, r http.Request, statusCode int, fields []any) {
return
}

// allDefaultMiddlewares is a middleware that bundles all the default/core middlewares into one.
//
// example usage:
Expand All @@ -60,6 +55,9 @@ func allDefaultMiddlewares(
secretKey := o.SecretKey
strategy := o.Strategy

// logger
logFunc := o.LogFunc

// ratelimit
rateLimit := o.RateLimit

Expand Down Expand Up @@ -173,9 +171,9 @@ func allDefaultMiddlewares(
rateLimit,
),
),
todoRemove,
logFunc,
),
todoRemove,
logFunc,
),
),
strategy,
Expand Down

0 comments on commit 7d45042

Please sign in to comment.