mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-30 17:53:31 -04:00 
			
		
		
		
	* fix webhooks not firing due to missing session * disable webhook test button because it doesnt do anything * fix background task administration not working at all * fix error in test
		
			
				
	
	
		
			20 lines
		
	
	
		
			494 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			494 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { BaseAPI } from "../base/base-clients";
 | |
| import { ServerTask } from "~/lib/api/types/server";
 | |
| import { PaginationData } from "~/lib/api/types/non-generated";
 | |
| 
 | |
| const prefix = "/api";
 | |
| 
 | |
| const routes = {
 | |
|   base: `${prefix}/admin/server-tasks`,
 | |
| };
 | |
| 
 | |
| export class AdminTaskAPI extends BaseAPI {
 | |
|   async testTask() {
 | |
|     return await this.requests.post<ServerTask>(`${routes.base}`, {});
 | |
|   }
 | |
| 
 | |
|   async getAll() {
 | |
|     return await this.requests.get<PaginationData<ServerTask>>(routes.base);
 | |
|   }
 | |
| }
 |