var users = require('./controllers/usersController.js');
var recipes = require('./controllers/recipesController.js');
var branches = require('./controllers/branchesController.js');
var versions = require('./controllers/versionsController.js');

module.exports = function(app, express) {
  // /*** Sign up / Sign in / Logout ***/
  // app.post('/user/signup', users.signup);
  // app.post('/user/login', users.login);
  // app.get('/user/logout', users.logout);

  // /*** Users ***/
  app.get('/:username/profile', users.getProfile); //gets recipes
  // app.put('/:username/profile', users.updateProfile);

  // /*** Recipes ***/
  app.post('/:username/create-recipe', recipes.createRecipe);
  app.get('/:username/:recipe', recipes.getRecipe); 
  app.delete('/:username/:recipe', recipes.deleteRecipe);

  // /*** Branches ***/
  app.post('/:username/:recipe/:branch', branches.createBranch);
  app.get('/:username/:recipe/:branch', branches.getBranch);
  app.delete('/:username/:recipe/:branch', branches.deleteBranch);

  /*** Versions ***/
  app.post('/:username/:recipe/:branch/create-version', versions.createVersion);
  app.get('/:username/:recipe/:branch/:version', versions.getVersion);
  app.delete('/:username/:recipe/:branch/:version', versions.deleteVersion);
};
@@ -1,11 +1,11 @@
-var
+let
  users =
@@ -5,34 +5,45 @@
 users = require(
-'.
+%60$%7B__dirname%7D
 /controllers/use
@@ -57,23 +57,23 @@
 oller.js
-');%0Avar
+%60);%0Alet
  recipes
@@ -75,34 +75,45 @@
 cipes = require(
-'.
+%60$%7B__dirname%7D
 /controllers/rec
@@ -129,23 +129,23 @@
 oller.js
-');%0Avar
+%60);%0Alet
  branche
@@ -148,34 +148,45 @@
 nches = require(
-'.
+%60$%7B__dirname%7D
 /controllers/bra
@@ -207,15 +207,15 @@
 r.js
-');%0Avar
+%60);%0Alet
  ver
@@ -234,10 +234,21 @@
 ire(
-'.
+%60$%7B__dirname%7D
 /con
@@ -277,17 +277,17 @@
 oller.js
-'
+%60
 );%0A%0Amodu
@@ -1309,10 +1309,88 @@
 rsion);%0A
+  app.post('/:username/:recipe/:branch/:version/fork', versions.forkVersion);%0A
 %7D;

Add route for forking