Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can CKAN Extensions have controllers?

Tags:

ckan

I am wondering if I can have controllers in a custom CKAN extension. If I can then how do I create routes to those controllers and the action functions in those controllers?

Thanks, PK

like image 872
user1380140 Avatar asked Jul 09 '13 15:07

user1380140


1 Answers

Yes, you can. There is the IRoutes Interface for CKAN extensions. The interface allows you to define routes to any controllers.

You can find an example at 2 which shows you how to connect a url in before_map and a controller in an extension.

like image 110
dominik Avatar answered Nov 04 '22 16:11

dominik