From d9bea13b44ec874e2fc2b3c8172f5dc2f3cdeffd Mon Sep 17 00:00:00 2001 From: Jonathan Treffler Date: Tue, 26 Nov 2024 23:57:28 +0100 Subject: [PATCH] fixed resource create route --- appinfo/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/routes.php b/appinfo/routes.php index 022fc5a..5bf935d 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -6,7 +6,7 @@ return [ 'routes' => [ /* Resources */ ['name' => 'resource#show', 'url' => '/resources/{resourceId}', 'verb' => 'GET'], - ['name' => 'resource#create', 'url' => '/resources/{resourceId}', 'verb' => 'POST'], + ['name' => 'resource#create', 'url' => '/resources', 'verb' => 'POST'], ['name' => 'resource#update', 'url' => '/resources/{resourceId}', 'verb' => 'PUT'], ['name' => 'resource#subResources', 'url' => '/resources/{resourceId}/subResources', 'verb' => 'GET'], ['name' => 'resource_member#index', 'url' => '/resources/{resourceId}/members', 'verb' => 'GET'],