From ee2738e9299c85c7f601eebd25a0dded1e1f9341 Mon Sep 17 00:00:00 2001 From: Ian Lindsay Date: Thu, 12 Dec 2024 10:20:41 +0000 Subject: [PATCH] feat: add check for licence with valid operator admin VOL-5955 --- config/backend-routes.config.php | 10 +++++++ src/Query/Licence/ExistsWithOperatorAdmin.php | 26 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/Query/Licence/ExistsWithOperatorAdmin.php diff --git a/config/backend-routes.config.php b/config/backend-routes.config.php index 3333e3a2..2a5bc6d0 100644 --- a/config/backend-routes.config.php +++ b/config/backend-routes.config.php @@ -768,6 +768,16 @@ ], 'may_terminate' => false, 'child_routes' => [ + 'exists-with-operator-admin' => [ + 'type' => 'Segment', + 'options' => [ + 'route' => 'exists-with-operator-admin/:licNo[/]', + ], + 'may_terminate' => false, + 'child_routes' => [ + 'GET' => QueryConfig::getConfig(Query\Licence\ExistsWithOperatorAdmin::class), + ] + ], 'by-number' => [ 'type' => 'Segment', 'options' => [ diff --git a/src/Query/Licence/ExistsWithOperatorAdmin.php b/src/Query/Licence/ExistsWithOperatorAdmin.php new file mode 100644 index 00000000..09454b5c --- /dev/null +++ b/src/Query/Licence/ExistsWithOperatorAdmin.php @@ -0,0 +1,26 @@ +licNo; + } +}