Removing routes on runtime #15907
Replies: 7 comments
-
I suggest to refer to the ASP.NET Core docs, coz |
Beta Was this translation helpful? Give feedback.
-
@jtkech ? |
Beta Was this translation helpful? Give feedback.
-
The router has changed in .NET Core 3.0 I think you will need to use |
Beta Was this translation helpful? Give feedback.
-
Yes, here not so easy, i could retrieve the related endpoints but was not able to remove them from a read only collection. So here better to use a See in our |
Beta Was this translation helpful? Give feedback.
-
@Skrypt you're right we now need to use But @MiroslawSondej want to override some routes. |
Beta Was this translation helpful? Give feedback.
-
Not tried but another solution would be that in your module startup you do some Need to be tried, maybe it will say that there is a conflict. |
Beta Was this translation helpful? Give feedback.
-
I think it works as long as the route names are not the same. |
Beta Was this translation helpful? Give feedback.
-
I'm maintaining an old application made using OrchardCMS. It's using some very old beta version of Orchard, so I decided to make an upgrade to the RC1 version. I had a problem with this part of Startup.cs code:
After upgrade, the definition of the "Configure" method is taking "IEndpointRouteBuilder" as a parameter instead of "IRouteBuilder", so I have no way to access and modify existing routes. Is there any way to delete those routes in the "Configure" method on runtime as I did in my code before?
Beta Was this translation helpful? Give feedback.
All reactions