HuanMengProject/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/OtherController.cs
2024-08-05 04:47:35 +08:00

31 lines
790 B
C#

using HuanMeng.MiaoYu.Code.Other;
using HuanMeng.MiaoYu.WebApi.Base;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace HuanMeng.MiaoYu.WebApi.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class OtherController : MiaoYuControllerBase
{
public OtherController(IServiceProvider _serviceProvider) : base(_serviceProvider)
{
}
/// <summary>
/// 清除缓存
/// </summary>
/// <returns></returns>
[HttpGet("cache/clear")]
[AllowAnonymous]
public async Task Clear()
{
OtherBLL otherBLL = new OtherBLL(ServiceProvider);
await otherBLL.CleraCache();
}
}
}