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