18 lines
298 B
JavaScript
18 lines
298 B
JavaScript
/**
|
|
* Created by WebStorm.
|
|
* User: martin
|
|
* Date: 24/07/2020
|
|
* Time: 11:42
|
|
|
|
*/
|
|
const jobs = require('../controllers/jobs.v2.controller');
|
|
|
|
module.exports = (app) => {
|
|
app.route('/v2/jobs')
|
|
.get(jobs.getList);
|
|
|
|
app.route('/v2/jobs/:id')
|
|
.get(jobs.getJob)
|
|
.put(jobs.readJob);
|
|
};
|