31 lines
790 B
C#
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();
|
|
|
|
}
|
|
}
|
|
}
|