เพิ่ม Code ในการแยก api ออกมาเป็น ClassLibrary และดึงไปใช้ในแต่ละ project
This commit is contained in:
parent
00f795483a
commit
ea6cfb0e98
6 changed files with 71 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using BMA.EHR.API.Command;
|
||||
using BMA.EHR.Application;
|
||||
using BMA.EHR.Infrastructure;
|
||||
using BMA.EHR.Infrastructure.Persistence;
|
||||
|
|
@ -83,6 +84,7 @@ var builder = WebApplication.CreateBuilder(args);
|
|||
{
|
||||
options.SuppressAsyncSuffixInActionNames = false;
|
||||
})
|
||||
.RegisterCommandControllers()
|
||||
.AddNewtonsoftJson(x => x.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore);
|
||||
|
||||
builder.Services.AddSwaggerGen();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue