mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 16:56:52 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			302 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			302 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import http from '@/api/http';
 | |
| 
 | |
| export default async (uuid: string, file: string, content: string): Promise<void> => {
 | |
|     await http.post(`/api/client/servers/${uuid}/files/write`, content, {
 | |
|         params: { file },
 | |
|         headers: {
 | |
|             'Content-Type': 'text/plain',
 | |
|         },
 | |
|     });
 | |
| };
 | 
