| 
									
										
										
										
											2021-09-27 22:43:31 +02:00
										 |  |  | 'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const responseHandlers = require('./src/response-handlers'); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-19 17:21:23 +01:00
										 |  |  | module.exports = [ | 
					
						
							| 
									
										
										
										
											2021-09-27 22:43:31 +02:00
										 |  |  |   'strapi::errors', | 
					
						
							|  |  |  |   'strapi::security', | 
					
						
							|  |  |  |   'strapi::cors', | 
					
						
							|  |  |  |   'strapi::poweredBy', | 
					
						
							|  |  |  |   'strapi::logger', | 
					
						
							| 
									
										
										
										
											2021-10-04 18:16:28 +02:00
										 |  |  |   'strapi::query', | 
					
						
							|  |  |  |   'strapi::body', | 
					
						
							| 
									
										
										
										
											2022-01-07 14:41:29 +01:00
										 |  |  |   'strapi::session', | 
					
						
							| 
									
										
										
										
											2021-09-29 16:05:33 +02:00
										 |  |  |   // 'strapi::compression',
 | 
					
						
							|  |  |  |   // 'strapi::ip',
 | 
					
						
							| 
									
										
										
										
											2021-09-27 22:43:31 +02:00
										 |  |  |   { | 
					
						
							|  |  |  |     name: 'strapi::responses', | 
					
						
							|  |  |  |     config: { | 
					
						
							|  |  |  |       handlers: responseHandlers, | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   'strapi::favicon', | 
					
						
							|  |  |  |   'strapi::public', | 
					
						
							| 
									
										
										
										
											2021-09-29 09:34:37 +02:00
										 |  |  |   { | 
					
						
							|  |  |  |     name: 'global::test-middleware', | 
					
						
							|  |  |  |     config: { | 
					
						
							|  |  |  |       foo: 'bar', | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2021-09-29 14:23:45 +02:00
										 |  |  |   { | 
					
						
							|  |  |  |     resolve: './src/custom/middleware.js', | 
					
						
							|  |  |  |     config: {}, | 
					
						
							|  |  |  |   }, | 
					
						
							| 
									
										
										
										
											2021-09-27 22:43:31 +02:00
										 |  |  | ]; |