Implemented token fetch

This commit is contained in:
2026-08-16 14:21:34 +02:00
parent def73c3fa8
commit 8d77e99c75
9 changed files with 51 additions and 16 deletions
+8 -1
View File
@@ -1,3 +1,5 @@
using Scalar.AspNetCore;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
@@ -9,6 +11,11 @@ var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.MapScalarApiReference(options =>
{
options.WithTitle("Post-fund Management API")
.WithTheme(ScalarTheme.BluePlanet);
});
app.MapOpenApi();
}
@@ -21,7 +28,7 @@ var summaries = new[]
app.MapGet("/weatherforecast", () =>
{
var forecast = Enumerable.Range(1, 5).Select(index =>
var forecast = Enumerable.Range(1, 5).Select(index =>
new WeatherForecast
(
DateOnly.FromDateTime(DateTime.Now.AddDays(index)),