From 99adf22957caa8203520abd26743e9f32dcd2120 Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Tue, 11 Oct 2022 16:16:03 -0700 Subject: [PATCH] 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 --- daprdocs/content/en/developing-applications/middleware.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/daprdocs/content/en/developing-applications/middleware.md b/daprdocs/content/en/developing-applications/middleware.md index 955f5655b..705f46fea 100644 --- a/daprdocs/content/en/developing-applications/middleware.md +++ b/daprdocs/content/en/developing-applications/middleware.md @@ -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)