'use strict';

var express = require('express');
var router = express.Router();
var mainController = new (require('../controllers/Main'))();
var templateController = new (require('../controllers/Template'))();
var portfolioController = new (require('../controllers/Portfolio'))();


/* GET main page. */
router.get('/', mainController.run);

/* GET main page. */
router.get('/template/select', templateController.run);

/* GET portfolio select page */
router.get('/portfolio/select', portfolioController.getAllPortfolio);

/* GET user portfolio page */
router.get('/user/:id', portfolioController.getUserPortfolio);

/* GET make portfolio page */
router.get('/user/:id/make/:template', portfolioController.makeUserPortfolio);

/* GET portfolio edit page */
router.get('/user/:id/edit/:portfolio', portfolioController.editUserPortfolio);

module.exports = router;

@@ -284,37 +284,36 @@
 /* GET main page
-.
  */%0A
+
 router.get('/', 
@@ -345,18 +345,28 @@
 GET 
-main
+template select
  page
-.
  */%0A
@@ -426,111 +426,8 @@
 );%0A%0A
-/* GET portfolio select page */%0Arouter.get('/portfolio/select', portfolioController.getAllPortfolio);%0A%0A
 /* G

Update index