123456789101112131415161718192021222324 |
- /**
- * Created by Tony on 2017/3/13.
- */
- var express = require('express');
- var rptRouter = express.Router();
- var pmController = require('./../controllers/pm_controller');
- rptRouter.get('/pm', function(req, res){
- if(!req.session.userAccount){
- res.redirect('/login');
- }
- else{
- res.render('pm/html/project-management.html',
- {userAccount: req.session.userAccount,
- userID: req.session.userID});
- }
- });
- rptRouter.post('/getProjects', pmController.getProjects);
- rptRouter.post('/updateProjects', pmController.updateProjects);
- rptRouter.post('/renameProject', pmController.rename);
- module.exports = rptRouter;
|