From 05378a735ff68ccc729a09c436b7add4d9e9d067 Mon Sep 17 00:00:00 2001 From: tp_dhu Date: Tue, 11 Feb 2025 09:26:05 +0000 Subject: [PATCH] added parsedown singleton reference as $md --- public/index.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/public/index.php b/public/index.php index 0412c3a..37e475d 100644 --- a/public/index.php +++ b/public/index.php @@ -1,8 +1,16 @@ purify($input); + $md = \Parsedown::instance(); + + $f3->set('DEBUG', 3); // development debug $f3->config('../app/.env.cfg'); @@ -44,16 +52,16 @@ $f3->route('POST /ticket/@id/update', 'TicketController->update'); // // knowledgebase $f3->route('GET /kb', 'KBController->index'); +$f3->route('GET /kb/@id', 'KBController->view'); $f3->route('GET /kb/create', 'KBController->createForm'); $f3->route('POST /kb/create', 'KBController->create'); -$f3->route('GET /kb/@id', 'KBController->view'); $f3->route('GET /kb/@id/edit', 'KBController->editForm'); -$f3->route('POST /kb/@id/edit', 'KBControllerKB->edit'); // should this be update - "crud"? +$f3->route('POST /kb/@id/update', 'KBController->update'); // should this be update - "crud"? // tags $f3->route('GET /tags', 'TagController->index'); -$f3->route('GET /tag/create', 'Tag->createForm'); -$f3->route('POST /tag/create', 'Tag->create'); +$f3->route('GET /tag/create', 'TagController->createForm'); +$f3->route('POST /tag/create', 'TagController->create'); // dashboard