const Router = require('express'); const router = Router(); router.get('/product', (req, res) => { res.json({ msg: 'get metódus'}); }); router.post('/product', (req, res) => { res.json({ msg: 'post metódus'}); }); router.put('/product', (req, res) => { res.json({ msg: 'put metódus'}); }); router.patch('/product', (req, res) => { res.json({ msg: 'patch metódus'}); }); router.delete('/product', (req, res) => { res.json({ msg: 'delete metódus'}); }); module.exports = router;