* Maintain FaKrosno api to handle Hangfire
* Added checking of missing EdiCo based on EdiCoTranslate and send email every 30 minutes * Added Admin Scheduler view
This commit is contained in:
17
FaKrosnoApi/Controllers/ScheduleJobController.cs
Normal file
17
FaKrosnoApi/Controllers/ScheduleJobController.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user