router.js 443 Bytes
/**
 * router of sub app api
 * @author: 陈轩<xuan.chen@yoho.cn>
 * @date: 2016/09/02
 */

'use strict';

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

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

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

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

module.exports = router;