Custom Route for Swashbuckle

I am trying to register my own route for swashbuckle. However, I cannot understand this.

I need to add an extension to the current route.

So, for example: Instead of swagger / ui, I need to install it swagger.aspx / ui .. This is due to the fact that my application will be hosted on a server on which I do not have access and IIS6 starts it.

Any ideas?

I tried:

RouteTable.Routes.Remove(RouteTable.Routes["swagger_docs"]);
RouteTable.Routes.Remove(RouteTable.Routes["swagger_ui"]);
config.EnableSwagger("docs.aspx/{apiVersion}/swagger", c => c.SingleApiVersion("v1", "A title for your API")).EnableSwaggerUi("swagger.aspx/{*assetPath}");

But without success ...: (

+4
source share

All Articles