I've seen Using Route_Action server event (v2021). The code in Route_Action server event from that link is used to display the content without header and footer.
Let's see the example from demo2021 for the models table from that file:
// models
$app->any('/modelslist[/{ID}]', ModelsController::class . ':list')->add(PermissionMiddleware::class)->setName('modelslist-models-list'); // list
...
$app->group(
'/models',
function (RouteCollectorProxy $group) {
$group->any('/' . Config("LIST_ACTION") . '[/{ID}]', ModelsController::class . ':list')->add(PermissionMiddleware::class)->setName('models/list-models-list-2'); // list
...
}
);
That code will allow us to use two different URL as follows:
app/modelslist
app/models/list
Now, we want to define our own another route, as follows:
app/data-model/list
So, at the moment we have to add the additional code below that one above:
$app->group(
'/data-model',
function (RouteCollectorProxy $group) {
$group->any('/' . Config("LIST_ACTION") . '[/{ID}]', ModelsController::class . ':list')->add(PermissionMiddleware::class)->setName('models/list-models-list-2'); // list
...
}
);