26 lines
578 B
C#
26 lines
578 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace SessionZeroBackend.Controllers;
|
|
|
|
[ApiController]
|
|
[Route("api/[controller]")]
|
|
public class DatabaseController : ControllerBase
|
|
{
|
|
private readonly ApplicationDbContext _context;
|
|
|
|
public DatabaseController(ApplicationDbContext context)
|
|
{
|
|
_context = context;
|
|
}
|
|
|
|
[HttpGet("validate-server")]
|
|
public IActionResult ValidateServer()
|
|
{
|
|
return Ok(new
|
|
{
|
|
IsValid = true,
|
|
Message = "SessionZero server is running.",
|
|
});
|
|
}
|
|
} |