Ca va p-e marcher
This commit is contained in:
@@ -3,6 +3,7 @@ using GrossesMitainesAPI.Models;
|
||||
using System.Linq;
|
||||
using GrossesMitainesAPI.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace GrossesMitainesAPI.Controllers;
|
||||
|
||||
@@ -16,7 +17,7 @@ public class ProductController : Controller {
|
||||
_context = context;
|
||||
}
|
||||
|
||||
[HttpGet(Name = "Product")]
|
||||
[HttpGet(Name = "Product"), AllowAnonymous]
|
||||
public Product Get(int id) {
|
||||
Product prod;
|
||||
try {
|
||||
|
Reference in New Issue
Block a user