Ca va p-e marcher

This commit is contained in:
MarcEricMartel
2022-10-16 07:45:18 -07:00
parent 81f32c630b
commit 0cc291b2a8
2 changed files with 16 additions and 20 deletions

View File

@@ -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 {