ServiceComposer.AspNetCore icon indicating copy to clipboard operation
ServiceComposer.AspNetCore copied to clipboard

Users cannot decorate composition handlers with the Route attribute to prefix routes

Open mauroservienti opened this issue 4 years ago • 2 comments

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

mauroservienti avatar Jun 25 '20 05:06 mauroservienti

@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.

mauroservienti avatar Mar 15 '21 10:03 mauroservienti

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.

markphillips100 avatar Mar 15 '21 11:03 markphillips100