mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-27 12:35:35 +08:00
17 lines
462 B
C#
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;
|
|
}
|
|
}
|