Skip to content

Commit d37a313

Browse files
committed
Marked as Authorized controllers
1 parent 190ddb4 commit d37a313

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Supermarket/Controllers/CategoriesController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using AutoMapper;
2+
using Microsoft.AspNetCore.Authorization;
23
using Microsoft.AspNetCore.Mvc;
34
using Supermarket.Domain.Services.Contracts;
45
using Supermarket.Entites.Models;
@@ -10,6 +11,7 @@
1011
namespace Supermarket.Controllers
1112
{
1213
[Route("/api/[controller]")]
14+
[Authorize]
1315
public class CategoriesController : ControllerBase
1416
{
1517
private readonly IServiceWrapper _serviceWrapper;

Supermarket/Controllers/ProductsController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using AutoMapper;
2+
using Microsoft.AspNetCore.Authorization;
23
using Microsoft.AspNetCore.Mvc;
34
using Supermarket.Domain.Services.Contracts;
45
using Supermarket.Entites.Models;
@@ -9,6 +10,7 @@
910
namespace Supermarket.Controllers
1011
{
1112
[Route("/api/[controller]")]
13+
[Authorize]
1214
public class ProductsController : ControllerBase
1315
{
1416
private readonly IServiceWrapper _serviceWrapper;

0 commit comments

Comments
 (0)