add delete feature

This commit is contained in:
Rutra
2026-05-04 15:16:07 +02:00
parent ac81ac530f
commit 9c51891828
6 changed files with 37 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ router
.group(() => {
router.get('/', [MediaController, 'index']);
router.post('/upload', [UploadController, 'store']);
router.delete('/media/:filename', [MediaController, 'destroy']);
router.get('/logout', [AuthController, 'logout']);
})
.use(middleware.auth());