feat: Ajout d'un groupe de tâches
This commit is contained in:
@@ -7,4 +7,13 @@ export class GroupService extends BaseService {
|
||||
public getGroups(): Observable<Group[]> {
|
||||
return this.get<Group[]>("group");
|
||||
}
|
||||
|
||||
public addGroup(name:string):Observable<Group>{
|
||||
let body:Group = {
|
||||
id_group:0,
|
||||
name_group:name,
|
||||
};
|
||||
|
||||
return this.post<Group>("group/add",body);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user