mirror of
https://github.com/bitwarden/server
synced 2025-12-16 16:23:31 +00:00
Initial PoC of seeder API
This commit is contained in:
20
util/SeederApi/Controllers/InfoController.cs
Normal file
20
util/SeederApi/Controllers/InfoController.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Bit.Core.Utilities;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Bit.SeederApi.Controllers;
|
||||
|
||||
public class InfoController : Controller
|
||||
{
|
||||
[HttpGet("~/alive")]
|
||||
[HttpGet("~/now")]
|
||||
public DateTime GetAlive()
|
||||
{
|
||||
return DateTime.UtcNow;
|
||||
}
|
||||
|
||||
[HttpGet("~/version")]
|
||||
public JsonResult GetVersion()
|
||||
{
|
||||
return Json(AssemblyHelpers.GetVersion());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user