Skip to content

Commit bca2fd4

Browse files
committed
Updated readme
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 96824ff commit bca2fd4

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ Middleware | Description
242242
[Static](https://labstack.com/echo/guide/static-files#using-static-middleware:123f9d1043075fe4874616541b409e4d) | Serve static files
243243
[AddTrailingSlash](https://labstack.com/echo/guide/middleware#addtrailingslash-middleware:37ab2f15ff048f67959bcac0a6032f32) | Add trailing slash to the request URI
244244
[RemoveTrailingSlash](https://labstack.com/echo/guide/middleware#removetrailingslash-middleware:37ab2f15ff048f67959bcac0a6032f32) | Remove trailing slash from the request URI
245+
[MethodOverride](https://labstack.com/echo/guide/middleware#method-override-middleware:37ab2f15ff048f67959bcac0a6032f32) | Override request method
245246

246247
##### [More...](https://labstack.com/echo/guide/middleware)
247248

middleware/jwt_auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type (
2424
// Optional, with default value as `user`.
2525
ContextKey string
2626

27-
// Extractor is a function that extracts token from the request
27+
// Extractor is a function that extracts token from the request.
2828
// Optional, with default values as `JWTFromHeader`.
2929
Extractor JWTExtractor
3030
}

middleware/method_override.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
type (
88
// MethodOverrideConfig defines the config for method override middleware.
99
MethodOverrideConfig struct {
10+
// Getter is a function that gets overridden method from the request.
1011
Getter MethodOverrideGetter
1112
}
1213

@@ -23,10 +24,10 @@ var (
2324
)
2425

2526
// MethodOverride returns a method override middleware.
26-
// Method override middleware checks for the overriden method from the request and
27+
// Method override middleware checks for the overridden method from the request and
2728
// uses it instead of the original method.
2829
//
29-
// For security reasons, only `POST` method can be overriden.
30+
// For security reasons, only `POST` method can be overridden.
3031
func MethodOverride() echo.MiddlewareFunc {
3132
return MethodOverrideWithConfig(DefaultMethodOverrideConfig)
3233
}

0 commit comments

Comments
 (0)