From 42e4d5d71fa029c0db176f377ae22d19e29ab956 Mon Sep 17 00:00:00 2001 From: Hugo Renard Date: Mon, 28 Oct 2024 15:11:41 +0100 Subject: [PATCH] feat: return a scim error on unknown paths --- appinfo/routes.php | 2 ++ lib/Controller/CatchAllController.php | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 lib/Controller/CatchAllController.php diff --git a/appinfo/routes.php b/appinfo/routes.php index 097ad2a..a439188 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -17,5 +17,7 @@ return [ ['name' => 'group#create', 'url' => '/Groups', 'verb' => 'POST'], ['name' => 'group#update', 'url' => '/Groups/{id}', 'verb' => 'PUT'], ['name' => 'group#destroy', 'url' => '/Groups/{id}', 'verb' => 'DELETE'], + + ['name' => 'catch_all#index', 'url' => '/{path}', 'verb' => 'GET'], ] ]; diff --git a/lib/Controller/CatchAllController.php b/lib/Controller/CatchAllController.php new file mode 100644 index 0000000..aa40df8 --- /dev/null +++ b/lib/Controller/CatchAllController.php @@ -0,0 +1,22 @@ +