chore: initial commit

contains boilerplate code
This commit is contained in:
2025-12-07 23:09:50 +01:00
commit eb6a8e52c1
12 changed files with 683 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
using Microsoft.AspNetCore.Mvc;
using SharpExifTool;
namespace Shadow.Controllers
{
[ApiController]
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries =
[
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
];
[HttpGet(Name = "GetWeatherForecast")]
//public async Task<IEnumerable<WeatherForecast>> Get()
public async Task<WeatherForecast> Get()
{
using (var exiftool = new ExifTool())
{
//var test = await exiftool.ExtractAllMetadataAsync(filename: "C:\\Path\\to\\file.flac/.mp3/.m4a/.ogg");
return new WeatherForecast();
}
//return Enumerable.Range(1, 5).Select(index => new WeatherForecast
//{
// Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
// TemperatureC = Random.Shared.Next(-20, 55),
// Summary = Summaries[Random.Shared.Next(Summaries.Length)]
//})
//.ToArray();
}
}
}