12 lines
		
	
	
		
			254 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			254 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { ipcMain } from 'electron'
 | |
| 
 | |
| import { getProfiles } from '../api'
 | |
| 
 | |
| import { Profile } from '../api/types'
 | |
| 
 | |
| ipcMain.handle('getProfiles', requestServerProfiles)
 | |
| 
 | |
| async function requestServerProfiles(): Promise<Profile[]> {
 | |
|   return getProfiles()
 | |
| }
 |