C#C
C#2y ago
Alex

Help with API structure

I want to create modular API structure https://timdeschryver.dev/blog/maybe-its-time-to-rethink-our-project-structure-with-dot-net-6#a-domain-driven-api like in this article. I split solution into .API and .Modules project. The problem is that I'm using MVC in my project and I don't how to apply it for MVC. For example where should I create controllers? In API project or Modules project?
Vocabify.API/
  - Controllers/
    Controller1.cs
Vocabify.Modules/
  IModule.cs
  - Module1
  - Module2
Challenging the status quo with some thoughts on the new .NET Minimal Web API to keep code simple
Was this page helpful?