更新API
This commit is contained in:
1 parent
16769a8726
commit
ece1e8065c
16 files changed
+161
-1
No files matched your search
@@ -23,6 +23,22 @@ module.exports = appInfo => {
|
||||
// myAppName: 'egg',
|
||||
};
|
||||
|
||||
config.multipart = {
|
||||
mode: 'file',
|
||||
fieldNameSize: 100,
|
||||
fieldSize: '100kb',
|
||||
fields: 9,
|
||||
fileSize: '10mb',
|
||||
files: 9,
|
||||
whitelist: [ '.jpg', '.jpeg', '.png', '.gif', '.webp', '.bmp' ],
|
||||
};
|
||||
|
||||
config.security = {
|
||||
csrf: {
|
||||
enable: false,
|
||||
},
|
||||
};
|
||||
|
||||
config.onerror = {
|
||||
all(error, ctx) {
|
||||
ctx.body = { errcode: 500, desc: error, result: false, data: null };
|
||||
|
||||
Reference in new issue
Block a user