router.js
607 Bytes
/**
* @author: huangtao
*/
'use strict';
const router = require('express').Router(); // eslint-disable-line
const cRoot = './controllers';
// var multipart = require('connect-multiparty');
// var multipartMiddleware = multipart();
// const uploadCtrl = require(`${cRoot}/upload`);
const shopCtrl = require(`${cRoot}/shop`);
router.get('/', shopCtrl.index);
router.get('/apply', shopCtrl.apply);
router.get('/getTwoCategory', shopCtrl.getTwoCategoryAction);
router.post('/applysave', shopCtrl.applysave);
// router.post('/upload', multipartMiddleware, uploadCtrl.uploadImg);
module.exports = router;