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)
{
}
///
/// 清除缓存
///
///
[HttpGet("cache/clear")]
[AllowAnonymous]
public async Task Clear()
{
OtherBLL otherBLL = new OtherBLL(ServiceProvider);
await otherBLL.CleraCache();
}
}
}