File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1
1
using AutoMapper ;
2
+ using Microsoft . AspNetCore . Authorization ;
2
3
using Microsoft . AspNetCore . Mvc ;
3
4
using Supermarket . Domain . Services . Contracts ;
4
5
using Supermarket . Entites . Models ;
10
11
namespace Supermarket . Controllers
11
12
{
12
13
[ Route ( "/api/[controller]" ) ]
14
+ [ Authorize ]
13
15
public class CategoriesController : ControllerBase
14
16
{
15
17
private readonly IServiceWrapper _serviceWrapper ;
Original file line number Diff line number Diff line change 1
1
using AutoMapper ;
2
+ using Microsoft . AspNetCore . Authorization ;
2
3
using Microsoft . AspNetCore . Mvc ;
3
4
using Supermarket . Domain . Services . Contracts ;
4
5
using Supermarket . Entites . Models ;
9
10
namespace Supermarket . Controllers
10
11
{
11
12
[ Route ( "/api/[controller]" ) ]
13
+ [ Authorize ]
12
14
public class ProductsController : ControllerBase
13
15
{
14
16
private readonly IServiceWrapper _serviceWrapper ;
You can’t perform that action at this time.
0 commit comments