Cannot register two routes matching

What can I do to differentia the two route

$group->get(’/articles/{id}/’, UserController::class.’:getArticle’);

$group->get(’/articles/{status}/’, UserController::class.’:getArticlesStatus’);

Perhaps:

$group->get(’/articles/status/’, UserController::class.’:getArticlesStatus’);
$group->get(’/articles/{id}/’, UserController::class.’:getArticle’);
$app->get(’/articles/status/{value}’, ArticleController::class.’:getAllByStatus’);
$app->get(’/article/{id}/’, ArticleController::class.’:get’);

or more general

$app->get(’/articles/{field}/{value}’, ArticleController::class.’:getAllBy’);
$app->get(’/article/{id}/’, ArticleController::class.’:get’);