Recreated project with project template

This commit is contained in:
2024-12-05 15:35:23 +01:00
parent 7659403dc8
commit 3392407890
76 changed files with 2020 additions and 2922 deletions

View File

@@ -0,0 +1,28 @@
using Microsoft.AspNetCore.Mvc;
using MoonlightServers.ApiServer.Services;
using MoonlightServers.Shared.Http.Responses;
namespace MoonlightServers.ApiServer.Http.Controllers;
[ApiController]
[Route("api/example")]
public class ExampleController : Controller
{
private readonly ExampleService ExampleService;
public ExampleController(ExampleService exampleService)
{
ExampleService = exampleService;
}
[HttpGet]
public async Task<ExampleResponse> Get()
{
var val = await ExampleService.GetValue();
return new ExampleResponse()
{
Number = val
};
}
}