feat: add delete collection form and controller method

This commit is contained in:
Sonny
2024-05-19 16:23:09 +02:00
committed by Sonny
parent 32133be8b0
commit 50030df9a6
10 changed files with 128 additions and 29 deletions

View File

@@ -26,7 +26,12 @@ router
.put('/:id', [CollectionsController, 'update'])
.as('collection.edit');
router.get('/delete', () => 'delete').as('collection.delete-form');
router
.get('/delete', [CollectionsController, 'showDeletePage'])
.as('collection.delete-form');
router
.delete('/:id', [CollectionsController, 'delete'])
.as('collection.delete');
})
.prefix('/collections');
})