Is there a way to configure ASP.Net Core API routing based on folder structure or namespaces. Let's say I create a subfolder Documents in the Controllers folder, and then a controller WatermarksController in it. Then I want the routes to its actions to be /Documents/Watermarks/[action].
I know I can achieve this by manually applying the Route() attribute to the controller class, but is there a way to programmatically set up routes on application start, using either namespaces of file system?