Added athorization in controller

This commit is contained in:
ashutosh.nehete 2025-07-02 10:15:00 +05:30
parent 85911c4536
commit 8353c384a5

View File

@ -7,6 +7,7 @@ using Marco.Pms.Model.Utilities;
using Marco.Pms.Services.Service; using Marco.Pms.Services.Service;
using MarcoBMS.Services.Helpers; using MarcoBMS.Services.Helpers;
using MarcoBMS.Services.Service; using MarcoBMS.Services.Service;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
@ -14,6 +15,7 @@ namespace Marco.Pms.Services.Controllers
{ {
[Route("api/[controller]")] [Route("api/[controller]")]
[ApiController] [ApiController]
[Authorize]
public class ImageController : ControllerBase public class ImageController : ControllerBase
{ {
private readonly ApplicationDbContext _context; private readonly ApplicationDbContext _context;