how i can configure .net 6 (Minimal API) to use the JsonApiSerializer as a default Json format??
i can set it in each map but i want to set it as an default format
this is will working
app.MapGet("/GetAll", async (AppDBContext db) =>
JsonConvert.SerializeObject(await db.Banks.ToArrayAsync(), new JsonApiSerializerSettings()));
but the output is a text not json