Able to create and read data from the DB

This commit is contained in:
kdeng00
2023-09-26 06:28:45 -04:00
parent b8a9142f05
commit 8f090bd2e2
5 changed files with 63 additions and 9 deletions
+5
View File
@@ -1,8 +1,12 @@
using Newtonsoft.Json;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
builder.Services.AddControllers().AddNewtonsoftJson();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
@@ -16,6 +20,7 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseAuthorization();