summaryrefslogtreecommitdiff
path: root/Controllers/ApiFeedController.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-06-05 00:37:02 +1000
committerJake Mannens <jake@asger.xyz>2026-06-11 01:13:31 +1000
commit81a0570c1b64891f286ee86d34d6f77090d525e3 (patch)
tree1c98593ddec2eb64029f4fabe024cb5323050bb1 /Controllers/ApiFeedController.cs
parent03055cb1b262a2b9a0516ad3aa523e503edeb36b (diff)
Deleted server-specific files
Diffstat (limited to 'Controllers/ApiFeedController.cs')
-rw-r--r--Controllers/ApiFeedController.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/Controllers/ApiFeedController.cs b/Controllers/ApiFeedController.cs
deleted file mode 100644
index 068cc17..0000000
--- a/Controllers/ApiFeedController.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using HyperBooru.ApiModels;
-using HyperBooru.Services;
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.EntityFrameworkCore;
-
-namespace HyperBooru.Controllers;
-
-[ApiController]
-[Authorize]
-[Route("/api/feed")]
-public class ApiFeedController : Controller {
- private IFeedService feedService;
-
- public ApiFeedController(IDbContextFactory<HBContext> dbFactory, IFeedService feedService) =>
- this.feedService = feedService;
-
- [HttpPost]
- public IActionResult FetchChunkAsync([FromBody] FeedRequest feedRequest) {
- if(feedRequest.Count > 1000)
- throw new ApiModels.ArgumentException("Total number of requested items exceeds maximum");
-
- return Ok(feedService.LoadChunk(feedRequest).Select(m => m.Guid).ToArray());
- }
-}