Initial commit
This commit is contained in:
20
Backend/Controllers/StartupController.cs
Normal file
20
Backend/Controllers/StartupController.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user