Hello,
I am trying to make a custom duplicate check tool for my EspoCRM backend. I have followed the steps in the docs(https://docs.espocrm.com/development/api-action/):
When i visit <crm_url>/#Hello/test/1 i get a 404. Im expecting to see 'test'. Did i overlook something in the docs? I just cant get it to work. Any clues?
Thanks,
Thomas
I am trying to make a custom duplicate check tool for my EspoCRM backend. I have followed the steps in the docs(https://docs.espocrm.com/development/api-action/):
- Created custom/Espo/Custom/Controllers/MyController.php with the example specified in the docs:
Code:
<?php namespace Espo\Custom\Controllers; class MyController extends \Espo\Core\Controllers\Base { public function getActionDoSomething($params, $data, $request) { die("test"); } public function postActionHelloWorld($params, $data, $request) { $name = $params['name']; // 'someName' } }
- Created custom/Espo/Custom/Resources/routes.json with the example specified in the docs:
Code:
[ { "route": "/Hello/test/:id", "method": "get", "params": { "controller": "MyController", "action": "doSomething", "id": ":id" } }, { "route": "/HelloWorld/:name", "method": "post", "params": { "controller": "MyController", "action": "helloWorld", "name": ":name" } } ]
Thanks,
Thomas
Comment