mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-03 18:53:17 -05:00 
			
		
		
		
	
		
			
	
	
		
			14 lines
		
	
	
		
			314 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			314 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								import { BaseAPI } from "../_base";
							 | 
						||
| 
								 | 
							
								import { ServerTask } from "~/api/types/server-task";
							 | 
						||
| 
								 | 
							
								const prefix = "/api";
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								const routes = {
							 | 
						||
| 
								 | 
							
								  base: `${prefix}/groups/server-tasks`,
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export class GroupServerTaskAPI extends BaseAPI {
							 | 
						||
| 
								 | 
							
								  async getAll() {
							 | 
						||
| 
								 | 
							
								    return await this.requests.get<ServerTask[]>(routes.base);
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 |