BililiveRecorder/BililiveRecorder.Web/Api/VersionController.cs

17 lines
462 B
C#
Raw Normal View History

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