芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/strapi-plugin-upload/config/routes.json
{ "routes": [ { "method": "GET", "path": "/settings", "handler": "Upload.getSettings", "config": { "policies": [] } }, { "method": "PUT", "path": "/settings", "handler": "Upload.updateSettings", "config": { "policies": [] } }, { "method": "POST", "path": "/", "handler": "Upload.upload", "config": { "policies": [], "description": "Upload a file", "tag": { "plugin": "upload", "name": "File" } } }, { "method": "GET", "path": "/files/count", "handler": "Upload.count", "config": { "policies": [], "description": "Retrieve the total number of uploaded files", "tag": { "plugin": "upload", "name": "File" } } }, { "method": "GET", "path": "/files", "handler": "Upload.find", "config": { "policies": [], "description": "Retrieve all file documents", "tag": { "plugin": "upload", "name": "File" } } }, { "method": "GET", "path": "/files/:id", "handler": "Upload.findOne", "config": { "policies": [], "description": "Retrieve a single file depending on its id", "tag": { "plugin": "upload", "name": "File" } } }, { "method": "GET", "path": "/search/:id", "handler": "Upload.search", "config": { "policies": [], "description": "Search for an uploaded file", "tag": { "plugin": "upload", "name": "File" } } }, { "method": "DELETE", "path": "/files/:id", "handler": "Upload.destroy", "config": { "policies": [], "description": "Delete an uploaded file", "tag": { "plugin": "upload", "name": "File" } } } ] }