import { HttpClient } from '@angular/common/http'; import { Injectable, inject } from '@angular/core'; import { Observable } from 'rxjs'; import { environment } from '../../environments/environment'; export interface CreaGruppoResponse { orgId: string; gruppiCreati: string[]; } @Injectable({ providedIn: 'root' }) export class GruppiApiService { private readonly http = inject(HttpClient); creaGruppo(nome: string): Observable { return this.http.post(`${environment.orgServiceApiBaseUrl}/gruppi`, { nome }); } }