From 5567c7cb8383f2b3e4ffacfc0031d7fcc299762c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 25 May 2023 06:45:15 +0200 Subject: [PATCH] Just move some ode --- .../Api/Controllers/Rules/RulesController.cs | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs b/backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs index e85e2a19bb..767d3823de 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 async Task PutEvent(string app, DomainId id) 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 async Task DeleteEvent(string app, DomainId id) 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. ///