api holiday

This commit is contained in:
kittapath 2024-12-21 01:11:42 +07:00
parent 692acf831a
commit b1b8d96e57
14 changed files with 1217 additions and 65 deletions

View file

@ -3,6 +3,7 @@ using BMA.EHR.Domain.Middlewares;
using BMA.EHR.Infrastructure;
using BMA.EHR.Infrastructure.Persistence;
using BMA.EHR.MetaData.Service;
using BMA.EHR.MetaData.Service.Services;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
@ -80,6 +81,7 @@ var builder = WebApplication.CreateBuilder(args);
builder.Services.AddApplication();
builder.Services.AddPersistence(builder.Configuration);
builder.Services.AddTransient<HolidayService>();
builder.Services.AddControllers(options =>
{
options.SuppressAsyncSuffixInActionNames = false;