BililiveRecorder/BililiveRecorder.Web/Api/VersionController.cs

17 lines
455 B
C#

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