import { Injectable } from '@angular/core';
import { RoleEnum } from '@msfa-enums/role.enum';
import { environment } from '@msfa-environment';
import { mapResponseToRoles, Role } from '@msfa-models/role.model';

@Injectable({
  providedIn: 'root',
})
export class RoleService {
  private readonly _apiBaseUrl = `${environment.api.url}/auth/userinfo`;
  public get allRoles(): Role[] {
    return mapResponseToRoles(Object.keys(RoleEnum) as RoleEnum[]);
  }
}
