* Added checking of missing EdiCo based on EdiCoTranslate and send email every 30 minutes * Added Admin Scheduler view
17 lines
374 B
C#
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");
|
|
}
|
|
}
|
|
|