You've already forked nginx-proxy-manager
							
							
				mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-30 18:05:34 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			389 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			389 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import * as api from "./base";
 | |
| import type { AccessList } from "./models";
 | |
| 
 | |
| export async function updateAccessList(item: AccessList, abortController?: AbortController): Promise<AccessList> {
 | |
| 	// Remove readonly fields
 | |
| 	const { id, createdOn: _, modifiedOn: __, ...data } = item;
 | |
| 
 | |
| 	return await api.put(
 | |
| 		{
 | |
| 			url: `/nginx/access-lists/${id}`,
 | |
| 			data: data,
 | |
| 		},
 | |
| 		abortController,
 | |
| 	);
 | |
| }
 |