var express = require('express');
var contractController = require('./contractController.js');

module.exports = function(app){
	app.post('/createjob', contractController.createJob);
	app.post('/editjob', contractController.editJob);
	app.post('/endjob', contractController.endJob);
	app.get('/gethistory', userController.getHistory);
  // app.route('/')
  //   .get(contractController.getContracts)
};

var express = require('express');
var contractController = require('./contractController.js');

module.exports = function(app){
	app.post('/createjob', contractController.createJob);
	app.post('/editjob', contractController.editJob);
	app.post('/endjob', contractController.endJob);
	app.get('/gethistory', contractController.getHistory);
  // app.route('/')
  //   .get(contractController.getContracts)
};

Change route from user to contractcontroller
Change route from user to contractcontroller
