diff --git a/backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs b/backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs index e85e2a19b..767d3823d 100644 --- a/backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs +++ b/backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs @@ -384,23 +384,6 @@ public sealed class RulesController : ApiController return NoContent(); } - /// - /// Cancels all events. - /// - /// The name of the app. - /// Events cancelled.. - [HttpDelete] - [Route("apps/{app}/rules/events/")] - [ProducesResponseType(StatusCodes.Status204NoContent)] - [ApiPermissionOrAnonymous(PermissionIds.AppRulesEventsDelete)] - [ApiCosts(1)] - public async Task DeleteEvents(string app) - { - await ruleEventsRepository.CancelByAppAsync(App.Id, HttpContext.RequestAborted); - - return NoContent(); - } - /// /// Cancels an event. /// @@ -427,6 +410,23 @@ public sealed class RulesController : ApiController return NoContent(); } + /// + /// Cancels all events. + /// + /// The name of the app. + /// Events cancelled.. + [HttpDelete] + [Route("apps/{app}/rules/events/")] + [ProducesResponseType(StatusCodes.Status204NoContent)] + [ApiPermissionOrAnonymous(PermissionIds.AppRulesEventsDelete)] + [ApiCosts(1)] + public async Task DeleteEvents(string app) + { + await ruleEventsRepository.CancelByAppAsync(App.Id, HttpContext.RequestAborted); + + return NoContent(); + } + /// /// Provide a list of all event types that are used in rules. ///