| 
									
										
										
										
											2021-09-03 23:50:47 +02:00
										 |  |  | 'use strict'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module.exports = { | 
					
						
							| 
									
										
										
										
											2021-09-06 10:55:47 +02:00
										 |  |  |   type: 'admin', | 
					
						
							| 
									
										
										
										
											2021-09-03 23:50:47 +02:00
										 |  |  |   routes: [ | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       method: 'POST', | 
					
						
							|  |  |  |       path: '/', | 
					
						
							|  |  |  |       handler: 'email.send', | 
					
						
							| 
									
										
										
										
											2021-09-08 18:47:22 +02:00
										 |  |  |       config: { | 
					
						
							|  |  |  |         policies: ['admin::isAuthenticatedAdmin'], | 
					
						
							|  |  |  |       }, | 
					
						
							| 
									
										
										
										
											2021-09-03 23:50:47 +02:00
										 |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       method: 'POST', | 
					
						
							|  |  |  |       path: '/test', | 
					
						
							|  |  |  |       handler: 'email.test', | 
					
						
							|  |  |  |       config: { | 
					
						
							|  |  |  |         policies: [ | 
					
						
							|  |  |  |           'admin::isAuthenticatedAdmin', | 
					
						
							|  |  |  |           { name: 'admin::hasPermissions', options: { actions: ['plugin::email.settings.read'] } }, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       method: 'GET', | 
					
						
							|  |  |  |       path: '/settings', | 
					
						
							|  |  |  |       handler: 'email.getSettings', | 
					
						
							|  |  |  |       config: { | 
					
						
							|  |  |  |         policies: [ | 
					
						
							|  |  |  |           'admin::isAuthenticatedAdmin', | 
					
						
							|  |  |  |           { name: 'admin::hasPermissions', options: { actions: ['plugin::email.settings.read'] } }, | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   ], | 
					
						
							|  |  |  | }; |