Category: prestashop

Creating and accessing custom module’s REST routes in Prestashop 1.7.5

I am trying to create a custom controller in my Prestashop 1.7.5 module. I created a custom controller: # /var/www/html/modules/Profit/src/controller/ProductProfitController.php namespace ProfitController; use PrestaShopBundleControllerAdminFrameworkBundleAdminController; use SymfonyComponentHttpFoundationJsonResponse; class ProductProfitController extends FrameworkBundleAdminController { public function test() { return JsonResponse(); } } I…