using GrossesMitainesAPI.Data; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Cors; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.Mvc; namespace GrossesMitainesAPI.Controllers; [EnableCors("_myAllowSpecificOrigins"), ApiController, Route("api/[controller]"), Authorize(AuthenticationSchemes = "Identity.Application", Roles = "Administrateur")] public class UserController : Controller { private readonly UserManager _userMan; private readonly SignInManager _signInMan; public UserController(SignInManager signin, UserManager userman) { this._signInMan = signin; this._userMan = userman; } }