add financial statement controller

This commit is contained in:
MahanCh
2025-07-13 14:17:52 +03:30
parent 00012cef52
commit fb52e99c68
10 changed files with 302 additions and 49 deletions

View File

@@ -26,6 +26,8 @@ using System.Text.Json;
using Microsoft.AspNetCore.CookiePolicy;
using Microsoft.AspNetCore.Mvc.Infrastructure;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Diagnostics;
var builder = WebApplication.CreateBuilder(args);
@@ -291,6 +293,7 @@ builder.Services.AddCors(options =>
builder.Services.AddExceptionHandler<CustomExceptionHandler>();
var app = builder.Build();
app.UseCors("AllowSpecificOrigins");
@@ -323,6 +326,8 @@ if (app.Environment.IsDevelopment())
//Create Http Pipeline
#region Create Http Pipeline
if (builder.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
@@ -333,17 +338,23 @@ else
app.UseHsts();
}
app.UseExceptionHandler(options => { }); // این خط CustomExceptionHandler رو فعال می‌کنه
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseCookiePolicy();
app.UseRouting();
app.UseAuthorization();
#region Mahan