mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Update stored procs/udf and update docker config
This commit is contained in:
@@ -16,22 +16,34 @@ app.UseHttpsRedirection();
|
||||
|
||||
var summaries = new[]
|
||||
{
|
||||
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
|
||||
"Freezing",
|
||||
"Bracing",
|
||||
"Chilly",
|
||||
"Cool",
|
||||
"Mild",
|
||||
"Warm",
|
||||
"Balmy",
|
||||
"Hot",
|
||||
"Sweltering",
|
||||
"Scorching",
|
||||
};
|
||||
|
||||
app.MapGet("/weatherforecast", () =>
|
||||
{
|
||||
var forecast = Enumerable.Range(1, 5).Select(index =>
|
||||
new WeatherForecast
|
||||
(
|
||||
DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
|
||||
Random.Shared.Next(-20, 55),
|
||||
summaries[Random.Shared.Next(summaries.Length)]
|
||||
))
|
||||
.ToArray();
|
||||
return forecast;
|
||||
})
|
||||
.WithName("GetWeatherForecast");
|
||||
app.MapGet(
|
||||
"/weatherforecast",
|
||||
() =>
|
||||
{
|
||||
var forecast = Enumerable
|
||||
.Range(1, 5)
|
||||
.Select(index => new WeatherForecast(
|
||||
DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
|
||||
Random.Shared.Next(-20, 55),
|
||||
summaries[Random.Shared.Next(summaries.Length)]
|
||||
))
|
||||
.ToArray();
|
||||
return forecast;
|
||||
}
|
||||
)
|
||||
.WithName("GetWeatherForecast");
|
||||
|
||||
app.UseStaticFiles();
|
||||
app.Run();
|
||||
|
||||
Reference in New Issue
Block a user