1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-16 07:07:32 -05:00

cleanup old jobs

This commit is contained in:
Kyle Spearrin
2017-08-17 20:13:10 -04:00
parent c4cc66c391
commit 8021621a3f
5 changed files with 7 additions and 49 deletions

View File

@ -1,38 +0,0 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Bit.Api.Utilities;
using Microsoft.AspNetCore.Authorization;
using Bit.Core.Services;
namespace Bit.Api.Controllers
{
[Route("jobs")]
[SelfHosted(SelfHostedOnly = true)]
[AllowAnonymous]
public class JobsController : Controller
{
private readonly ILicensingService _licensingService;
private readonly IUserService _userService;
public JobsController(
ILicensingService licensingService,
IUserService userService)
{
_licensingService = licensingService;
_userService = userService;
}
[HttpPost("organization-license")]
public async Task PostOrganizationLicense()
{
await _licensingService.ValidateOrganizationsAsync();
}
[HttpPost("refresh-licenses")]
public Task PostRefreshLicenses()
{
// TODO
return Task.FromResult(0);
}
}
}