mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-11-04 03:03:18 -05: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);
 | 
						|
  }
 | 
						|
}
 |