Closed Arcalise08 closed 2 years ago
Hi,
try to use property RoutePrefix
app.UseSwaggerForOcelotUI(opt =>
{
opt.RoutePrefix = "docs";
})
⚠ but be careful, no slash!
Hi,
try to use property
RoutePrefix
app.UseSwaggerForOcelotUI(opt => { opt.RoutePrefix = "docs"; })
⚠ but be careful, no slash!
Thanks so much, Not sure why I hadnt tried that.
I'm unsure if this is a bug or if I'm simply using it wrong.
I'm trying to change the default
/swagger
prefixI've tried all combinations of the following
the RoutePrefix option seems like the one to use.
And going to
localhost/my-prefix
will redirect tolocalhost/my-prefix/index.html
like it should, but I get a 404 error.