feat: Ajout de projet
This commit is contained in:
@@ -8,4 +8,13 @@ export class ProjectService extends BaseService {
|
||||
public getProjects(): Observable<Project[]> {
|
||||
return this.get<Project[]>("project");
|
||||
}
|
||||
|
||||
public addProject(name: string): Observable<Project> {
|
||||
let body: Project = {
|
||||
name_project: name,
|
||||
id_project: 0
|
||||
}
|
||||
|
||||
return this.post<Project>("project/add", body);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user