summaryrefslogtreecommitdiffstats
path: root/src/server/Api/Internal/GetHealthRoute.cs
blob: bb3b2bbb6ed97441dd1f4504c3b7082c7a7a0029 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace IOL.BookmarkThing.Server.Api.Internal;

public class GetHealthRoute : RouteBaseInternalSync.WithoutRequest.WithActionResult
{
	[AllowAnonymous]
	[ApiExplorerSettings(IgnoreApi = true)]
	[HttpGet("~/v{version:apiVersion}/health")]
	public override ActionResult Handle() {
		return Ok(new {
				Request.Protocol,
				Request.Host,
				Request.Scheme
		});
	}
}