This commit is contained in:
parent
684c66b112
commit
cbc9540280
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@ using NoteRenderer = Iceshrimp.Backend.Controllers.Mastodon.Renderers.NoteRender
|
|||
namespace Iceshrimp.Backend.Controllers.Pleroma;
|
||||
|
||||
[MastodonApiController]
|
||||
[Authenticate]
|
||||
[EnableCors("mastodon")]
|
||||
[EnableRateLimiting("sliding")]
|
||||
[Produces(MediaTypeNames.Application.Json)]
|
||||
|
@ -27,6 +28,7 @@ public class AdminController(
|
|||
) : ControllerBase
|
||||
{
|
||||
[HttpGet("/api/v1/pleroma/admin/reports")]
|
||||
[Authenticate("admin:read:reports")]
|
||||
[ProducesResults(HttpStatusCode.OK)]
|
||||
public async Task<ReportsResponse> GetReports(bool resolved = false)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue