I'm trying to route a subdomain to a rest route module essencially.
So far all I've been able to get working is routing the subdomain to the module with the correct route.
What I've got so far :
resources.router.routes.api.type = "Zend_Controller_Router_Route_Hostname"
resources.router.routes.api.route = "api.mysite.dev"
resources.router.routes.api.defaults.module = "api"
resources.router.routes.api.chains.index.type = "Zend_Controller_Router_Route"
resources.router.routes.api.chains.index.route = "v0.1/:controller/:action/*"
resources.router.routes.api.chains.index.defaults.controller = "index"
resources.router.routes.api.chains.index.defaults.action = "index"
This works fine, in that if I go to http://api.mysite.dev/v0.1/ it correctly routes to the index controller of the api module. However I've had no success in routing to a Rest route.
I would have thought that this would be common practice.