Can CKAN extensions have controllers?

I am wondering if I can have controllers in the CKAN user extension. If I can, then how can I create routes for these controllers and actions in these controllers?

Thank you pc

+4
source share
1 answer

Yes, you can. For CKAN extensions, there is an IRoutes Interface . The interface allows you to define routes for any controllers.

You can find the example in 2 , which shows how to connect the URL in before_map and the controller in the extension.

+4
source

Source: https://habr.com/ru/post/1490519/


All Articles