var jobCtrl = require('../controllers/job.controller');
var userCtrl = require('../controllers/user.controller');

function jobRoutes(router) {
	router.route('/jobs')
		.post(jobCtrl.postJob)
		.get(jobCtrl.getAllJobs)
		.put(jobCtrl.apply);

	 router.route('/jobs/:id')
    .get(jobCtrl.getJob)
    .put(jobCtrl.editJob)
    .delete(jobCtrl.deleteJob);

   router.route('/farmOwner/:id/jobs')
    .get(jobCtrl.getFarmOwnerJobs);
}

module.exports = jobRoutes;
@@ -215,14 +215,41 @@
 obs)
+;%0A%0A%09router.route('/apply')
 %0A%09%09.p
-u
+os
 t(jo
@@ -263,16 +263,81 @@
 pply);%0A%0A
+%09router.route('/applicants/:id')%0A%09%09.get(jobCtrl.getApplicants);%0A%0A
 %09 router

add route for retrieving jobs user has applied for