add refund and event logic
This commit is contained in:
@@ -88,11 +88,16 @@ class OpenApiRouteExporter
|
||||
}
|
||||
$segments = explode('/', $trimmed);
|
||||
$segment = $segments[0] ?: 'api';
|
||||
$secondary = $segments[1] ?? null;
|
||||
$normalized = Str::title(str_replace('-', ' ', $segment));
|
||||
$overrides = [
|
||||
'Whatsapp' => 'WhatsApp',
|
||||
];
|
||||
|
||||
if ($segment === 'finance' && $secondary === 'refunds') {
|
||||
return 'Refunds';
|
||||
}
|
||||
|
||||
return $overrides[$normalized] ?? $normalized;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user