I have a problem with slim, I’m sending a PUT method but it is falling in the GET route and returning me a 403 error
PUT /api/product/19982
<?php
$app->group('/api', function () use ($app, $container) {
$app->group('/product', function () use ($app, $container) {
$app->get('', 'App\Action\Product:index');
$app->post('', 'App\Action\Product:store');
$app->group('/{id:\d{1,11}+}', function () use ($app, $container) {
$app->put('', 'App\Action\Product:store');
$app->get('', 'App\Action\Product:show');
$app->put('/category/google', 'App\Action\Product:putCategoryGoogle');
});
$app->get('/mercadolivre', 'App\Action\MercadoLivre:lista');
});
});
fixed was a problem in .htaccess doing the wrong redirect