Two month of work

This commit is contained in:
2026-02-17 10:35:03 +01:00
parent 0ffbeeedff
commit d9fd3d1ccb
158 changed files with 5637 additions and 1512 deletions
+24
View File
@@ -0,0 +1,24 @@
import axios, { AxiosError } from 'axios';
import { Note, PipelineItem } from '@/types';
import { toast } from 'vue-sonner';
const API_URL = '/api/pipeline';
const ITEMS_API_URL = '/api/pipelineItems';
export default {
/**
* Deletes an item by ID
* @param id - The id of the item to delete
* @returns boolean - True if the item was deleted, false otherwise
*/
async deletePipelineItem(id: number): Promise<boolean> {
try {
const response = await axios.delete(`${ITEMS_API_URL}/${id}`);
return true;
} catch (error) {
toast.error('Fehler beim Löschen des Vorgangs', { description: (error as AxiosError).message })
console.error(error)
return false;
}
},
};