一文搞懂eggjs中上传文件

1、基本的配置 在eggjs中上传文件的官方文档html 一、配置上传的路由git module.exports = (app) => { const { router, controller } = app; router.resources('file', '/api/v1/file', controller.file); }; 二、在config/config.default.js中
相关文章
相关标签/搜索