ServiceComposer.AspNetCore
ServiceComposer.AspNetCore copied to clipboard
Users cannot decorate composition handlers with the Route attribute to prefix routes
ASP.Net Controllers support decorating the controller class with the route attribute. As of today, the composition handler class contains only one single Handle
method making the route prefixing feature less useful. Although, this is needed in order to support conventions based handlers as detailed by #247
@markphillips100 would you mind having a look at https://github.com/ServiceComposer/ServiceComposer.AspNetCore/pull/278? I have a feeling that it's too simple and I'm missing something obvious.
I'll take a deeper look tomorrow @mauroservienti . I just took a quick look at MVC Routing rules here and we should probably be mindful of this:
Route templates applied to an action that begin with / or ~/ don't get combined with route templates applied to the controller.