GGMM/GrossesMitaines/GrossesMitainesAPI/Controllers/InvoiceController.cs

23 lines
674 B
C#
Raw Normal View History

2022-11-02 12:40:09 -04:00
namespace GrossesMitainesAPI.Controllers;
using GrossesMitainesAPI.Data;
2022-11-01 14:07:49 -04:00
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
[EnableCors("_myAllowSpecificOrigins"), ApiController, Route("api/[controller]"),
Authorize(AuthenticationSchemes = "Identity.Application", Roles = "Administrateur")]
public class InvoiceController : Controller {
private readonly ILogger<InvoiceController> _logger;
private readonly InventoryContext _context;
public InvoiceController(ILogger<InvoiceController> logger, InventoryContext context) {
this._logger = logger;
this._context = context;
}
}