cds-routing-handlers
cds-routing-handlers copied to clipboard
Draft event support
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
Hi @bvincent
currently we do not have this planned, but we are looking into the requirement.
Regards Simon
Hello @HeneryHawk,
Thanks for your reply, I found a more complete link which lists all draft event provided by cap.
Regards,
Benoit
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).