diff --git a/public/index.php b/public/index.php index 68579f3..f42d3a4 100644 --- a/public/index.php +++ b/public/index.php @@ -52,6 +52,18 @@ $f3->route('GET /ticket/create', 'TicketController->createForm'); // show form t $f3->route('POST /ticket/create', 'TicketController->create'); // save $f3->route('GET /ticket/@id/edit', 'TicketController->editForm'); // edit ticket $f3->route('POST /ticket/@id/update', 'TicketController->update'); // +// additional routes - comments +$f3->route('POST /ticket/@id/comment', 'CommentController->create'); +$f3->route('GET /ticket/@id/comment/@comment_id/delete', 'CommentController->delete'); +$f3->route('GET /ticket/@id/comments', 'CommentController->index'); +// route for linking a child to a parent +$f3->route('POST /ticket/@id/add-subtask', 'TicketController->addSubtask'); + +// attachments +$f3->route('GET /ticket/@id/attachments', 'AttachmentController->index'); +$f3->route('POST /ticket/@id/attachments/upload', 'AttachmentController->upload'); +$f3->route('GET /attachment/@id/download', 'AttachmentController->download'); +$f3->route('GET /attachment/@id/delete', 'AttachmentController->delete'); // knowledgebase $f3->route('GET /kb', 'KBController->index');