Implemented db entities. Adjusted template default values

This commit is contained in:
2024-12-05 16:49:47 +01:00
parent 3392407890
commit 3b77b3df1e
21 changed files with 1385 additions and 75 deletions

View File

@@ -1,28 +0,0 @@
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
};
}
}