feat: Add authentication configuration with OpenID Connect and update appsettings #4

This commit is contained in:
Marek Lesko
2025-07-27 16:30:17 +00:00
parent 813b7ac9aa
commit b991f009c7
3 changed files with 37 additions and 0 deletions

View File

@@ -1,10 +1,12 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Api.Models;
using Microsoft.AspNetCore.Authorization;
namespace Api.Controllers
{
[ApiController]
[Authorize]
[Route("api/[controller]")]
public class ProductController : ControllerBase
{