router.js
622 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('/settled', shopCtrl.index);
router.get('/settled/apply', shopCtrl.apply);
router.get('/getTwoCategory', shopCtrl.getTwoCategoryAction);
router.post('/applysave', shopCtrl.applysave);
// router.post('/upload', multipartMiddleware, uploadCtrl.uploadImg);
module.exports = router;