Hello ,, I have two API action like this (2024.7)
// API Action event
function Api_Action($app)
{
// Example:
$app->post('/myaction', function ($request, $response, $args) {
return $response->withJson(["name" => "myaction"]);
});
$app->post('/myaction2', function ($request, $response, $args) {
return $response->withJson(["name" => "myaction2"]);
});
}
now when i call 'myaction' using ajax post i got success with this response "name" => "myaction"
but when i call 'myaction2' using ajax post i got success with same 'myaction' response "name" => "myaction" ,while i should got "name" => "myaction2"
any idea ?
Thanx ...