← All changes
|
backend/src/Controllers/Confirmation/GetConfirmationsController.php
+1
-6
0.7
→
1.5.1
View file →
| @@ -6,13 +6,8 @@ | ||
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | 8 | namespace IvyForms\Controllers\Confirmation; |
| 9 | 9 | |
| 10 | -// phpcs:disable PSR1.Files.SideEffects | |
| 11 | -if (!defined('ABSPATH')) { | |
| 12 | - exit; // Exit if accessed directly | |
| 13 | -} | |
| 14 | - | |
| 15 | 10 | use IvyForms\Common\Exceptions\ForbiddenException; |
| 16 | 11 | use IvyForms\Common\Exceptions\InvalidArgumentException; |
| 17 | 12 | use IvyForms\Common\Exceptions\NotFoundException; |
| 18 | 13 | use IvyForms\Common\Sanitizer\Sanitizer; |
| @@ -61,8 +56,8 @@ | ||
| 61 | 56 | } |
| 62 | 57 | |
| 63 | 58 | return new WP_REST_Response([ |
| 64 | 59 | 'message' => BackendStrings::getCommonStrings()['ok'], |
| 65 | - $confirmations | |
| 60 | + 'data' => $confirmations, | |
| 66 | 61 | ], 200); |
| 67 | 62 | } |
| 68 | 63 | } |