Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
558 B
1
Indexable
Never
const express = require('express');
const offerRouter = express.Router();
const offerController = require('../controllers/offerController');

offerRouter.post('/addoffer', offerController.addNewOffer);
offerRouter.post('/updateoffer', offerController.updateOffer);
offerRouter.post('/changestatus', offerController.changeStatus);
offerRouter.delete('/deleteoffer/:id', offerController.deleteOffer);

offerRouter.get('/list', offerController.getoffersList);
offerRouter.get('/:id', offerController.getofferbyId);


module.exports = offerRouter;
Leave a Comment