Added response filter in all controllers
This commit is contained in:
parent
638d9faf1f
commit
e1ca7e6152
@ -17,6 +17,7 @@ namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class AppMenuController : ControllerBase
|
||||
{
|
||||
|
||||
@ -26,6 +26,7 @@ namespace MarcoBMS.Services.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class AttendanceController : ControllerBase
|
||||
{
|
||||
|
||||
@ -22,6 +22,7 @@ using System.Text;
|
||||
namespace MarcoBMS.Services.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class AuthController : ControllerBase
|
||||
{
|
||||
|
||||
@ -16,8 +16,9 @@ using System.Globalization;
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class DashboardController : ControllerBase
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
@ -7,9 +7,10 @@ using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
|
||||
public class DirectoryController : ControllerBase
|
||||
{
|
||||
|
||||
@ -24,9 +24,10 @@ using Document = Marco.Pms.Model.DocumentManager.Document;
|
||||
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class DocumentController : ControllerBase
|
||||
{
|
||||
private readonly IDbContextFactory<ApplicationDbContext> _dbContextFactory;
|
||||
|
||||
@ -26,9 +26,10 @@ using System.Net;
|
||||
|
||||
namespace MarcoBMS.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
|
||||
public class EmployeeController : ControllerBase
|
||||
{
|
||||
|
||||
@ -7,9 +7,10 @@ using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class ExpenseController : ControllerBase
|
||||
{
|
||||
private readonly UserHelper _userHelper;
|
||||
|
||||
@ -11,9 +11,10 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace MarcoBMS.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
// [Authorize]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class FeatureController : ControllerBase
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
@ -4,8 +4,9 @@ using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace MarcoBMS.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class FileController : ControllerBase
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
@ -19,6 +19,7 @@ namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class ForumController : ControllerBase
|
||||
{
|
||||
|
||||
@ -18,9 +18,10 @@ using System.Text.Json;
|
||||
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class ImageController : ControllerBase
|
||||
{
|
||||
private readonly IDbContextFactory<ApplicationDbContext> _dbContextFactory;
|
||||
|
||||
@ -8,8 +8,9 @@ using System.Text.Json;
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class LogController : ControllerBase
|
||||
{
|
||||
private readonly ILogger<LogController> _logger;
|
||||
|
||||
@ -14,8 +14,9 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class MarketController : ControllerBase
|
||||
{
|
||||
private readonly IDbContextFactory<ApplicationDbContext> _dbContextFactory;
|
||||
|
||||
@ -20,8 +20,9 @@ using Microsoft.EntityFrameworkCore;
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class MasterController : ControllerBase
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
@ -8,9 +8,10 @@ using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class OrganizationController : ControllerBase
|
||||
{
|
||||
private readonly IDbContextFactory<ApplicationDbContext> _dbContextFactory;
|
||||
|
||||
@ -7,8 +7,9 @@ using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class PaymentController : ControllerBase
|
||||
{
|
||||
private readonly UserHelper _userHelper;
|
||||
|
||||
@ -13,9 +13,10 @@ using MongoDB.Driver;
|
||||
|
||||
namespace MarcoBMS.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class ProjectController : ControllerBase
|
||||
{
|
||||
private readonly IProjectServices _projectServices;
|
||||
|
||||
@ -17,9 +17,10 @@ using System.Net.Mail;
|
||||
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class ReportController : ControllerBase
|
||||
{
|
||||
private readonly IDbContextFactory<ApplicationDbContext> _dbContextFactory;
|
||||
|
||||
@ -20,9 +20,10 @@ using System.Data;
|
||||
#nullable disable
|
||||
namespace MarcoBMS.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class RolesController : ControllerBase
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
@ -10,9 +10,10 @@ using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class ServiceProjectController : Controller
|
||||
{
|
||||
private readonly IServiceProject _serviceProject;
|
||||
|
||||
@ -24,9 +24,10 @@ using Document = Marco.Pms.Model.DocumentManager.Document;
|
||||
namespace MarcoBMS.Services.Controllers
|
||||
{
|
||||
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class TaskController : ControllerBase
|
||||
{
|
||||
private readonly ApplicationDbContext _context;
|
||||
|
||||
@ -30,9 +30,10 @@ using System.Text.Json;
|
||||
|
||||
namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
public class TenantController : ControllerBase
|
||||
{
|
||||
private readonly IDbContextFactory<ApplicationDbContext> _dbContextFactory;
|
||||
|
||||
@ -14,9 +14,10 @@ using System.Net.Mail;
|
||||
|
||||
namespace MarcoBMS.Services.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
[EncryptResponse]
|
||||
[Route("api/[controller]")]
|
||||
|
||||
public class UserController : ControllerBase
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user