split form upload and wx upload, refactor file structure
This commit is contained in:
+13
-1
@@ -48,7 +48,19 @@ server {
|
||||
|
||||
#Upload image files
|
||||
location /api/ngx/image/upload {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/upload.lua;
|
||||
content_by_lua_file $resty_loc/nginx/scripts/old_upload.lua;
|
||||
}
|
||||
#upload image from weixin media
|
||||
location /api/ngx/image/wx_upload_single {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/wx_upload_single.lua;
|
||||
}
|
||||
#upload image files to combine by form
|
||||
location /api/ngx/image/form_upload_to_combine {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/form_upload_to_combine.lua;
|
||||
}
|
||||
#Upload image files to combine by wx
|
||||
location /api/ngx/image/wx_upload_to_combine {
|
||||
content_by_lua_file $resty_loc/nginx/scripts/wx_upload_to_combine.lua;
|
||||
}
|
||||
#Combine image files
|
||||
location /api/ngx/image/combine {
|
||||
|
||||
Reference in New Issue
Block a user