refactor: revew all design of services, clients, deadcode, ...

This commit is contained in:
Julien Froidefond
2025-08-24 22:03:15 +02:00
parent f4dcc89c11
commit 6fba622003
63 changed files with 969 additions and 1846 deletions

View File

@@ -0,0 +1,26 @@
import { BaseHttpClient } from "../base/http-client";
import { SkillCategory } from "../../lib/types";
export class SkillsClient extends BaseHttpClient {
/**
* Crée une nouvelle skill
*/
async createSkill(
categoryId: string,
skill: {
id: string;
name: string;
description: string;
icon?: string;
links: string[];
}
): Promise<boolean> {
try {
await this.post(`/skills/${categoryId}`, skill);
return true;
} catch (error) {
console.error("Erreur lors de la création de la skill:", error);
return false;
}
}
}