Apply strict rate limiting to /api/v1/apps endpoint
This commit is contained in:
parent
cec4abd841
commit
61e8d7f640
1 changed files with 2 additions and 1 deletions
|
@ -15,8 +15,8 @@ namespace Iceshrimp.Backend.Controllers.Mastodon;
|
|||
[Produces("application/json")]
|
||||
[Route("/api/v1")]
|
||||
public class MastodonAuthController(DatabaseContext db) : Controller {
|
||||
[AuthenticateOauth]
|
||||
[HttpGet("verify_credentials")]
|
||||
[AuthenticateOauth]
|
||||
[Produces("application/json")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(MastodonAuth.VerifyCredentialsResponse))]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized, Type = typeof(MastodonErrorResponse))]
|
||||
|
@ -33,6 +33,7 @@ public class MastodonAuthController(DatabaseContext db) : Controller {
|
|||
}
|
||||
|
||||
[HttpPost("apps")]
|
||||
[EnableRateLimiting("strict")]
|
||||
[Consumes("application/json", "application/x-www-form-urlencoded", "multipart/form-data")]
|
||||
[Produces("application/json")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(MastodonAuth.RegisterAppResponse))]
|
||||
|
|
Loading…
Add table
Reference in a new issue