mirror of https://github.com/dapr/docs.git
Remove outdated comment on creating a middleware (#2880)
* Remove outdated comment on creating a middleware Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> * Removing unnecessary link Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> Co-authored-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
parent
e6b57063b1
commit
99adf22957
|
@ -95,15 +95,8 @@ func (m *customMiddleware) GetHandler(metadata Metadata) (func(fasthttp.RequestH
|
|||
}
|
||||
```
|
||||
|
||||
## Adding new middleware components
|
||||
|
||||
Your middleware component can be contributed to the [components-contrib repository](https://github.com/dapr/components-contrib/tree/master/middleware).
|
||||
|
||||
After the components-contrib change has been accepted, submit another pull request against the [Dapr runtime repository](https://github.com/dapr/dapr) to register the new middleware type. You'll need to modify **[runtime.WithHTTPMiddleware](https://github.com/dapr/dapr/blob/f4d50b1369e416a8f7b93e3e226c4360307d1313/cmd/daprd/main.go#L394-L424)** method in [cmd/daprd/main.go](https://github.com/dapr/dapr/blob/master/cmd/daprd/main.go) to register your middleware with Dapr's runtime.
|
||||
|
||||
## Related links
|
||||
|
||||
- [Component schema]({{< ref component-schema.md >}})
|
||||
- [Configuration overview]({{< ref configuration-overview.md >}})
|
||||
- [API middleware sample](https://github.com/dapr/samples/tree/master/middleware-oauth-google)
|
||||
- [App middleware sample](https://github.com/dapr/samples/tree/master/pluggable-components-dotnet-template)
|
||||
|
|
Loading…
Reference in New Issue