britnay268 / TunaPiano-BE

0 stars 0 forks source link

Add Code to avoid Cycling Error #3

Closed britnay268 closed 2 months ago

britnay268 commented 2 months ago

Description

Code needs to be added to avoid cyclic errors when making multiple requests to different apis

Dev Notes

Add this code after the add cors policy and before var app = builder.Build();

builder.Services.Configure<Microsoft.AspNetCore.Http.Json.JsonOptions>(options => options.SerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles);

Image

Issue Type

britnay268 commented 2 months ago

Completed - database PR!