Replies: 2 comments
-
I think it's located in Program.cs |
Beta Was this translation helpful? Give feedback.
0 replies
-
you can change it in WebApplicationExtensions.cs the routing mechanism feeded by this file, it creates all the routing with this rule |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As the template default create path for API using
/api
, how can we safely change path for/api
to/
for web API?I have changed these 3 following points:
output
inconfig.nswag
DocumentPath
inProgram.cs
Comment
app.Map("/", () => Results.Redirect("/api"));
inProgram.cs
Are there anything need to be changed?
Beta Was this translation helpful? Give feedback.
All reactions