fix: update package versions for EntityFramework and adjust API endpoint in login component
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user