comments, attachments, and ancestor routes
This commit is contained in:
parent
2a711584cd
commit
10bc56bcdf
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user