Dotnet Core 3.1 endpoint routing for api with areas

At this time, all of my controllers have a decorator at the top of the class like this:

[Route("[area]/api/[controller]")] 

I feel like this could be done in the Startup.cs file using an endpoint routing command, but for the life of me, I can’t figure out the syntax.

Does anyone know how I would enter this into Configure -> app.UseEndpoints

(I know how I would do it in ASP.net)

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.