We have a rest handler which extends cborm.models.resources.BaseHandler
(latest Coldbox, latest cbOrm)
If I add to config router:
resources(resource = 'api/user', handler = 'cbadmin:api.user',parameterName='userid');
This generates the following routes:
If I add to my cbadmin/ModuleConfig.cfc
function onLoad(){ appRouter.resources(resource = 'api/user', handler = 'api.user',module='cbadmin',parameterName='userid');
This generates the following module routes:
But if I call /cbadmin/api/user/1/edit/
then I get an 405 Invalid Action
, because the RC looks like this:
Any ideas what I’m doing wrong?