added parsedown singleton reference as $md

This commit is contained in:
tp_dhu 2025-02-11 09:26:05 +00:00
parent c439d771f5
commit 05378a735f

View File

@ -1,8 +1,16 @@
<?php
require '../lib/vendor/autoload.php';
require '../lib/autoload.php';
$f3 = \Base::instance();
/**
* Not required yet
*/
// $htmlpurifier = new \HTMLPurifier();
// $htmlpurifier->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