god i hope
Some checks are pending
/ test-build-and-push (push) Waiting to run

This commit is contained in:
notfire 2025-03-30 21:43:05 -04:00
parent 684c66b112
commit cbc9540280
Signed by: notfire
GPG key ID: 3AFDACAAB4E56B16

View file

@ -17,6 +17,7 @@ using NoteRenderer = Iceshrimp.Backend.Controllers.Mastodon.Renderers.NoteRender
namespace Iceshrimp.Backend.Controllers.Pleroma; namespace Iceshrimp.Backend.Controllers.Pleroma;
[MastodonApiController] [MastodonApiController]
[Authenticate]
[EnableCors("mastodon")] [EnableCors("mastodon")]
[EnableRateLimiting("sliding")] [EnableRateLimiting("sliding")]
[Produces(MediaTypeNames.Application.Json)] [Produces(MediaTypeNames.Application.Json)]
@ -27,6 +28,7 @@ public class AdminController(
) : ControllerBase ) : ControllerBase
{ {
[HttpGet("/api/v1/pleroma/admin/reports")] [HttpGet("/api/v1/pleroma/admin/reports")]
[Authenticate("admin:read:reports")]
[ProducesResults(HttpStatusCode.OK)] [ProducesResults(HttpStatusCode.OK)]
public async Task<ReportsResponse> GetReports(bool resolved = false) public async Task<ReportsResponse> GetReports(bool resolved = false)
{ {