-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcseQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.tutorials/subsvc
Description
Description
Hello, the problem I found is that you have to manually add the:
app.AddControllers();
app.MapControllers();
middleware in the Program.cs file.
It does not get generated automatically when using the console command:
dotnet new webapi -o BookStoreApi
Without it, the routes don't get called.
Page URL
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/tutorials/first-mongo-app.md
Document ID
83a5cb3b-23bc-4f0c-cd1c-1d1ffeb1131a
Article author
Metadata
Metadata
Assignees
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcseQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.tutorials/subsvc