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;
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue