using Bootstrap.DataAccess;
using Bootstrap.Security;
using Longbow.Cache;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
namespace Bootstrap.Admin.Controllers.Api
{
///
///
///
[Route("api/[controller]")]
[ApiController]
public class SettingsController : ControllerBase
{
///
///
///
///
///
[HttpPost]
[ButtonAuthorize(Url = "~/Admin/Settings", Auth = "saveTitle,saveFooter,saveTheme")]
public bool Post([FromBody]BootstrapDict value) => DictHelper.SaveSettings(value);
///
///
///
[HttpGet]
public IEnumerable Get() => CacheManager.CorsSites;
}
}