Extending Content Delivery API v2

Hello,

quick question - is it possible to add a custom endpoint to Content Delivery API to run my custom logic? For example I’d like to add a method to get all root nodes.

The proposed API path could look like this:

/umbraco/delivery/api/v2/content/getAllRoots

Is that even possible?

I know I can achieve it building my own backoffice controller, but I wonder if I can extend Content Delivery API somehow?

Thank you in advance for any clues!


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/113535-extending-content-delivery-api-v2