fix: update package versions for EntityFramework and adjust API endpoint in login component

This commit is contained in:
Marek Lesko
2025-07-30 08:05:36 +02:00
parent 329fb94a3a
commit af127b716e
4 changed files with 9 additions and 10 deletions

View File

@@ -6,8 +6,8 @@ using Microsoft.AspNetCore.Authorization;
namespace Api.Controllers
{
[ApiController]
[Authorize]
[Route("api/[controller]")]
//[Authorize]
[Route("api/product")]
public class ProductController : ControllerBase
{
private readonly AppDbContext _context;
@@ -19,7 +19,6 @@ namespace Api.Controllers
// GET: api/Product
[HttpGet]
[Route("api/product")]
public async Task<ActionResult<IEnumerable<Product>>> GetProducts([FromQuery] int? id = null)
{
if (id.HasValue)