18 lines
280 B
JavaScript
18 lines
280 B
JavaScript
|
/**
|
||
|
* Created by WebStorm.
|
||
|
* User: martin
|
||
|
* Date: 28/07/2020
|
||
|
* Time: 11:07
|
||
|
|
||
|
*/
|
||
|
|
||
|
const vote = require('../controllers/vote.controller');
|
||
|
|
||
|
module.exports = (app) => {
|
||
|
app.route('/vote/up/:id')
|
||
|
.put(vote.upvote);
|
||
|
|
||
|
app.route('/vote/down/:id')
|
||
|
.put(vote.downvote);
|
||
|
};
|