Added storage quotas

This commit is contained in:
Fergal Moran
2018-05-13 03:04:01 +01:00
parent 629a6e0bf3
commit 8dce112d7a
17 changed files with 230 additions and 90 deletions

View File

@@ -46,13 +46,9 @@ namespace PodNoms.Api.Controllers {
}
[HttpGet("checkslug/{slug}")]
public async Task<IActionResult> CheckSlug(string slug) {
public async Task<ActionResult<bool>> CheckSlug(string slug) {
var slugValid = await _userManager.CheckSlug(slug);
if (slugValid)
return NotFound();
return Ok();
return Ok(slugValid);
}
[HttpGet("limits")]