SPMS_API/SPMS.API/Controllers/MaintenanceController.cs
2026-02-10 14:33:32 +09:00

29 lines
894 B
C#

using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using SPMS.Application.DTOs.AppConfig;
using SPMS.Application.Interfaces;
using SPMS.Domain.Common;
namespace SPMS.API.Controllers;
[ApiController]
[Route("v1/in/public")]
[ApiExplorerSettings(GroupName = "public")]
public class MaintenanceController : ControllerBase
{
private readonly IAppConfigService _appConfigService;
public MaintenanceController(IAppConfigService appConfigService)
{
_appConfigService = appConfigService;
}
[HttpPost("maintenance")]
[SwaggerOperation(Summary = "점검 안내", Description = "현재 서비스 점검 상태를 조회합니다.")]
public async Task<IActionResult> GetMaintenanceAsync()
{
var result = await _appConfigService.GetMaintenanceAsync();
return Ok(ApiResponse<MaintenanceResponseDto>.Success(result));
}
}