mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +00:00 
			
		
		
		
	Remove content manager upload route
This commit is contained in:
		
							parent
							
								
									5f9c5341c2
								
							
						
					
					
						commit
						fb41211d00
					
				| @ -64,14 +64,6 @@ | |||||||
|         "policies": [] |         "policies": [] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     { |  | ||||||
|       "method": "POST", |  | ||||||
|       "path": "/explorer/upload", |  | ||||||
|       "handler": "ContentManager.uploadFile", |  | ||||||
|       "config": { |  | ||||||
|         "policies": [] |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     { |     { | ||||||
|       "method": "GET", |       "method": "GET", | ||||||
|       "path": "/explorer/:model", |       "path": "/explorer/:model", | ||||||
|  | |||||||
| @ -144,15 +144,4 @@ module.exports = { | |||||||
|       ctx.request.query |       ctx.request.query | ||||||
|     ); |     ); | ||||||
|   }, |   }, | ||||||
| 
 |  | ||||||
|   /** |  | ||||||
|    * Handle uploads in the explorer |  | ||||||
|    */ |  | ||||||
|   async uploadFile(ctx) { |  | ||||||
|     if (!strapi.plugins.upload) { |  | ||||||
|       ctx.send({ error: 'uploadPlugin.notInstalled' }, 400); |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     return strapi.plugins.upload.controllers.upload.upload(ctx); |  | ||||||
|   }, |  | ||||||
| }; | }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Alexandre Bodin
						Alexandre Bodin