Extract APIs to their own files #108
| @ -1,3 +1,5 @@ | |||||||
|  | /* Copyright (C) 2024 Manuel Bustillo*/ | ||||||
|  | 
 | ||||||
| import { Expense } from '@/app/lib/definitions'; | import { Expense } from '@/app/lib/definitions'; | ||||||
| import { getCsrfToken } from '@/app/lib/utils'; | import { getCsrfToken } from '@/app/lib/utils'; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | /* Copyright (C) 2024 Manuel Bustillo*/ | ||||||
|  | 
 | ||||||
| import { Group } from '@/app/lib/definitions'; | import { Group } from '@/app/lib/definitions'; | ||||||
| 
 | 
 | ||||||
| export function loadGroups(onLoad?: (groups: Group[]) => void) { | export function loadGroups(onLoad?: (groups: Group[]) => void) { | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | /* Copyright (C) 2024 Manuel Bustillo*/ | ||||||
|  | 
 | ||||||
| import { Guest } from '@/app/lib/definitions'; | import { Guest } from '@/app/lib/definitions'; | ||||||
| import { getCsrfToken } from '@/app/lib/utils'; | import { getCsrfToken } from '@/app/lib/utils'; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,3 +1,5 @@ | |||||||
|  | /* Copyright (C) 2024 Manuel Bustillo*/ | ||||||
|  | 
 | ||||||
| import { TableArrangement } from '@/app/lib/definitions'; | import { TableArrangement } from '@/app/lib/definitions'; | ||||||
| 
 | 
 | ||||||
| export function loadTableSimulations(onLoad?: (tableSimulations: TableArrangement[]) => void) { | export function loadTableSimulations(onLoad?: (tableSimulations: TableArrangement[]) => void) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user