Files
FA_WEB/FaKrosnoApi/Controllers/ScheduleJobController.cs
Piotr Kus c0fed5b3ec * Maintain FaKrosno api to handle Hangfire
* Added checking of missing EdiCo based on EdiCoTranslate and send email every 30 minutes
* Added Admin Scheduler view
2025-02-14 08:46:56 +01:00

17 lines
374 B
C#

using FaKrosnoApi.Services;
using Microsoft.AspNetCore.Mvc;
namespace FaKrosnoApi.Controllers;
[ApiController]
[Route("[controller]")]
public class ScheduleJobController(IScheduleJobService scheduledJob) : ControllerBase
{
[HttpPost("start")]
public IActionResult StartJob()
{
scheduledJob.ExecuteAsync();
return Ok("Job started");
}
}