Skip to content

Commit

Permalink
updating uploads helper
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Jan 12, 2024
1 parent 78978d6 commit dcc877c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 14 additions & 11 deletions src/Config/UtilsConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,6 @@ class UtilsConfig
public const INTEGRATION_TYPE_COMPLEX = 'complex';


// ------------------------------------------------------------------
// VALIDATIOR
// ------------------------------------------------------------------

/**
* API validator output key.
*
* @var string
*/
public const VALIDATOR_OUTPUT_KEY = 'validation';

// ------------------------------------------------------------------
// FILE UPLOAD
// ------------------------------------------------------------------
Expand Down Expand Up @@ -445,6 +434,20 @@ class UtilsConfig
*/
public const ROUTE_VERSION = 'v1';

/**
* Route output validator key.
*
* @var string
*/
public const ROUTE_OUTPUT_VALIDATION_KEY = 'validation';

/**
* Route output add-on data key.
*
* @var string
*/
public const ROUTE_OUTPUT_ADDON_DATA_KEY = 'addon';

// ------------------------------------------------------------------
// CAPS
// ------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/UtilsApiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public static function getIntegrationApiOutput(array $details, string $msg, arra
$additionalOutput = [];

$additional = [
UtilsConfig::VALIDATOR_OUTPUT_KEY,
UtilsConfig::ROUTE_OUTPUT_VALIDATION_KEY,
...$additional,
];

Expand Down

0 comments on commit dcc877c

Please sign in to comment.