Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
WebDesktop/Backend/Controllers/StartupController.cs
2022-09-04 12:03:44 +02:00

20 lines
398 B
C#

using Microsoft.AspNetCore.Mvc;
namespace Backend.Controllers;
[ApiController]
public class TestController : ControllerBase {
private DatabaseContext _context;
public TestController(DatabaseContext context) {
_context = context;
}
[HttpGet("")]
public IActionResult InitializeDb() {
_context.ExecuteTableCreation();
return Ok("OK");
}
}