| 
									
										
										
										
											2021-09-04 00:01:07 +02:00
										 |  |  | 'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module.exports = { | 
					
						
							|  |  |  |   type: 'content-api', | 
					
						
							|  |  |  |   routes: [ | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       method: 'POST', | 
					
						
							|  |  |  |       path: '/', | 
					
						
							| 
									
										
										
										
											2021-09-20 18:50:48 +02:00
										 |  |  |       handler: 'content-api.upload', | 
					
						
							| 
									
										
										
										
											2021-09-04 00:01:07 +02:00
										 |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       method: 'GET', | 
					
						
							|  |  |  |       path: '/files', | 
					
						
							| 
									
										
										
										
											2021-09-20 18:50:48 +02:00
										 |  |  |       handler: 'content-api.find', | 
					
						
							| 
									
										
										
										
											2021-09-04 00:01:07 +02:00
										 |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       method: 'GET', | 
					
						
							|  |  |  |       path: '/files/:id', | 
					
						
							| 
									
										
										
										
											2021-09-20 18:50:48 +02:00
										 |  |  |       handler: 'content-api.findOne', | 
					
						
							| 
									
										
										
										
											2021-09-04 00:01:07 +02:00
										 |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       method: 'DELETE', | 
					
						
							|  |  |  |       path: '/files/:id', | 
					
						
							| 
									
										
										
										
											2021-09-20 18:50:48 +02:00
										 |  |  |       handler: 'content-api.destroy', | 
					
						
							| 
									
										
										
										
											2021-09-04 00:01:07 +02:00
										 |  |  |     }, | 
					
						
							|  |  |  |   ], | 
					
						
							|  |  |  | }; |