BililiveRecorder/BililiveRecorder.Web/Api/VersionController.cs
2022-06-09 15:40:08 +08:00

17 lines
462 B
C#

using BililiveRecorder.Web.Models;
using Microsoft.AspNetCore.Mvc;
namespace BililiveRecorder.Web.Api
{
[ApiController, Route("api/[controller]", Name = "[controller] [action]")]
public sealed class VersionController : ControllerBase
{
/// <summary>
/// 读取软件版本信息
/// </summary>
/// <returns></returns>
[HttpGet]
public RecorderVersion GetVersion() => RecorderVersion.Instance;
}
}