문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top