From 34b3fefaddd165b649c53e140f6b749c18943d26 Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 3 May 2021 17:44:38 +0200 Subject: Add delete option on every post. --- routes/web.js | 1 + 1 file changed, 1 insertion(+) (limited to 'routes/web.js') diff --git a/routes/web.js b/routes/web.js index 732c87c..ee07d85 100644 --- a/routes/web.js +++ b/routes/web.js @@ -5,5 +5,6 @@ const postController = require('../controllers/post'); router.get('/', postController.index); router.get('/new-post', postController.create); router.post('/new-post', postController.store); +router.get('/remove-post/:id', postController.destroy); module.exports = router; -- cgit v1.2.3