parent
							
								
									adbeff3a28
								
							
						
					
					
						commit
						4ede367c1e
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -82,6 +82,7 @@ export class ApiServerService {
 | 
				
			||||||
				}>('/' + endpoint.name, (request, reply) => {
 | 
									}>('/' + endpoint.name, (request, reply) => {
 | 
				
			||||||
					if (request.method === 'GET' && !endpoint.meta.allowGet) {
 | 
										if (request.method === 'GET' && !endpoint.meta.allowGet) {
 | 
				
			||||||
						reply.code(405);
 | 
											reply.code(405);
 | 
				
			||||||
 | 
											reply.send();
 | 
				
			||||||
						return;
 | 
											return;
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
| 
						 | 
					@ -95,6 +96,7 @@ export class ApiServerService {
 | 
				
			||||||
				}>('/' + endpoint.name, (request, reply) => {
 | 
									}>('/' + endpoint.name, (request, reply) => {
 | 
				
			||||||
					if (request.method === 'GET' && !endpoint.meta.allowGet) {
 | 
										if (request.method === 'GET' && !endpoint.meta.allowGet) {
 | 
				
			||||||
						reply.code(405);
 | 
											reply.code(405);
 | 
				
			||||||
 | 
											reply.send();
 | 
				
			||||||
						return;
 | 
											return;
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue