feature/cierres #31

Merged
aldarien merged 462 commits from feature/cierres into develop 2025-09-11 17:05:18 -03:00
305 changed files with 947 additions and 12717 deletions
Showing only changes of commit 1597657f0e - Show all commits

View File

@ -29,7 +29,7 @@ return [
],
'externalPaths' => [
'/api/external' => [
'/toku' => $_ENV['TOKU_TOKEN']
'/toku/success' => $_ENV['TOKU_TOKEN']
],
]
];

View File

@ -71,11 +71,11 @@ class API
{
$uri = $request->getUri();
foreach ($this->externalPaths as $basePath => $paths) {
if (!str_starts_with($uri->getPath(), $basePath)) {
if (!str_starts_with($uri->getPath(), strtolower($basePath))) {
continue;
}
foreach ($paths as $subPath) {
$fullPath = "{$basePath}{$subPath}";
foreach ($paths as $subPath => $key) {
$fullPath = strtolower("{$basePath}{$subPath}");
if ($uri->getPath() === $fullPath) {
return $this->validateExternalKey($request, $basePath, $subPath);
}