From 7693ac9bcab74153a33965056f049f319252fbae Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 24 May 2019 11:05:17 +0300 Subject: [PATCH] Flextype Box Plugin: Admin #125 #117 - Snippets Controller/Views implementation --- site/plugins/admin/routes.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/site/plugins/admin/routes.php b/site/plugins/admin/routes.php index 2c3c0ed1..307e5ba5 100644 --- a/site/plugins/admin/routes.php +++ b/site/plugins/admin/routes.php @@ -49,3 +49,14 @@ $app->get('/admin/templates/rename', 'TemplatesController:rename')->setName('adm $app->post('/admin/templates/rename', 'TemplatesController:renameProcess')->setName('admin.templates.renameProcess'); $app->get('/admin/templates/duplicate', 'TemplatesController:duplicateProcess')->setName('admin.templates.duplicateProcess'); $app->get('/admin/templates/delete', 'TemplatesController:deleteProcess')->setName('admin.templates.deleteProcess'); + +// SnippetsController +$app->get('/admin/snippets', 'SnippetsController:index')->setName('admin.templates.index'); +$app->get('/admin/snippets/add', 'SnippetsController:add')->setName('admin.templates.add'); +$app->post('/admin/snippets/add', 'SnippetsController:addProcess')->setName('admin.templates.addProcess'); +$app->get('/admin/snippets/edit', 'SnippetsController:edit')->setName('admin.templates.edit'); +$app->post('/admin/snippets/edit', 'SnippetsController:editProcess')->setName('admin.templates.addProcess'); +$app->get('/admin/snippets/rename', 'SnippetsController:rename')->setName('admin.templates.rename'); +$app->post('/admin/snippets/rename', 'SnippetsController:renameProcess')->setName('admin.templates.renameProcess'); +$app->get('/admin/snippets/duplicate', 'SnippetsController:duplicateProcess')->setName('admin.templates.duplicateProcess'); +$app->get('/admin/snippets/delete', 'SnippetsController:deleteProcess')->setName('admin.templates.deleteProcess');