From e4b0f320973822427f3c0b6d3a7aae98b4201040 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sat, 13 Jul 2024 00:20:47 +0200 Subject: [PATCH] [backend/api] Extract authorize & authenticate attributes to TimelineController --- Iceshrimp.Backend/Controllers/Web/TimelineController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Iceshrimp.Backend/Controllers/Web/TimelineController.cs b/Iceshrimp.Backend/Controllers/Web/TimelineController.cs index 753b9908..29ae0beb 100644 --- a/Iceshrimp.Backend/Controllers/Web/TimelineController.cs +++ b/Iceshrimp.Backend/Controllers/Web/TimelineController.cs @@ -16,6 +16,8 @@ using Microsoft.EntityFrameworkCore; namespace Iceshrimp.Backend.Controllers.Web; [ApiController] +[Authenticate] +[Authorize] [LinkPagination(20, 80)] [EnableRateLimiting("sliding")] [Route("/api/iceshrimp/timelines")] @@ -23,8 +25,6 @@ namespace Iceshrimp.Backend.Controllers.Web; public class TimelineController(DatabaseContext db, NoteRenderer noteRenderer, CacheService cache) : ControllerBase { [HttpGet("home")] - [Authenticate] - [Authorize] [ProducesResults(HttpStatusCode.OK)] public async Task> GetHomeTimeline(PaginationQuery pq) {