From f6f3cf312a7358a771ba4cdf1e078110ee47ab6d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 2 May 2024 22:54:38 +0000 Subject: [PATCH] Went through todos --- Admin/Routes/Web/Api.php | 2 +- Controller/ApiController.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Admin/Routes/Web/Api.php b/Admin/Routes/Web/Api.php index a054d0e..dc83496 100755 --- a/Admin/Routes/Web/Api.php +++ b/Admin/Routes/Web/Api.php @@ -159,7 +159,7 @@ return [ ], ], - '^.*/wiki/category/l11n$' => [ + '^.*/wiki/category/l11n(\?.*|$)$' => [ [ 'dest' => '\Modules\Knowledgebase\Controller\ApiController:apiWikiCategoryL11nCreate', 'verb' => RouteVerb::PUT, diff --git a/Controller/ApiController.php b/Controller/ApiController.php index cdadae9..f9038f0 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -55,6 +55,10 @@ final class ApiController extends Controller * * @api * + * @question Consider to use the Editor module for the content instead of handling + * the content separately in the wiki module. + * https://github.com/Karaka-Management/oms-Knowledgebase/issues/7 + * * @since 1.0.0 */ public function apiWikiDocCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void