corrected REST configuration in main.php