Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature idea - redirect from / to swagger #168

Closed
karpikpl opened this issue Mar 22, 2022 · 1 comment
Closed

Feature idea - redirect from / to swagger #168

karpikpl opened this issue Mar 22, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@karpikpl
Copy link
Collaborator

Microsoft samples have redirect from / to /swagger
That could be part of code generation
https://github.com/dotnet-architecture/eShopOnContainers/blob/dev/src/Services/Catalog/Catalog.API/Controllers/HomeController.cs

@chullybun chullybun added the enhancement New feature or request label Feb 16, 2023
@chullybun
Copy link
Collaborator

This support is enabled using Swagger configuration; the Beef template outputs this by default in the API Startup:

        app.UseSwaggerUI(c =>
        {
            c.RoutePrefix = ""; // Default as the root/home page.
            c.SwaggerEndpoint("/swagger/v1/swagger.json", "Company.AppName");
        });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants