mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-25 18:58:12 +00:00
Merge Repos
This commit is contained in:
20
server/Controllers/JobController.cs
Normal file
20
server/Controllers/JobController.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Threading.Tasks;
|
||||
using Hangfire;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using PodNoms.Api.Services.Jobs;
|
||||
|
||||
namespace PodNoms.Api.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
[Route("[controller]")]
|
||||
public class JobController : Controller
|
||||
{
|
||||
[HttpGet("processorphans")]
|
||||
public IActionResult ProcessOrphans()
|
||||
{
|
||||
var infoJobId = BackgroundJob.Enqueue<ClearOrphanAudioJob>(service => service.Execute());
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user