I want to have this url www.mydomain.com/api/operations?pageNumber=1 but I do not know how to implement that in the routes files, I try doing this
$app->get(’/operations?pageNumber={id}’, ‘OperationController:GetByPaginated’)->add(‘LoginMiddleware’);
but the server respond with a 404 error.
could anyone help me with this?
thanks