cds-routing-handlers icon indicating copy to clipboard operation
cds-routing-handlers copied to clipboard

Draft event support

Open bvincent opened this issue 2 years ago • 3 comments

Hello,

I am developing an application using CAP in typescript. First, I really appreciate your works, that will speed up development and improve readability of handler.

This issue is more a question, It is planned to support specific draft event provided by CAP ?

Thanks in advance,

Ben

bvincent avatar Jun 29 '22 18:06 bvincent

Hi @bvincent

currently we do not have this planned, but we are looking into the requirement.

Regards Simon

HeneryHawk avatar Jul 10 '22 15:07 HeneryHawk

Hello @HeneryHawk,

Thanks for your reply, I found a more complete link which lists all draft event provided by cap.

Regards,

Benoit

bvincent avatar Jul 19 '22 09:07 bvincent

I'm thinking we could use some more generic decorators, i.e. @Before, @After and @On that would just map to Service#before, Service#after and Service#on until draft event decorators are properly implemented. This would allow using wildcards too (although I agree middleware is better than the '*' event wildcard).

alumni avatar Oct 20 '22 11:10 alumni