aboutsummaryrefslogtreecommitdiff
path: root/routes/web.js
blob: ee07d853e15f4f9ef58cd2af3ebae5899d0c8dc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
const express = require('express');
const router = express.Router();
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;