router.js 421 Bytes
/**
 * router of sub app shopping
 * @author: jinhu.dong<jinhu.dong@yoho.cn>
 * @date: 2016/07/04
 */

'use strict';

const router = require('express').Router(); // eslint-disable-line

var multipart = require('connect-multiparty');
var multipartMiddleware = multipart();

const uploadApi = require('./upload/upload.js');

router.post('/upload/image', multipartMiddleware, uploadApi.uploadImg);

module.exports = router;