Implement JavaScript route generation and default route fallback system

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-22 01:34:31 +00:00
parent de4e0438f0
commit 7ebe35f207
3 changed files with 107 additions and 38 deletions

View File

@@ -2088,7 +2088,7 @@ JS;
console_debug('BUNDLE', "Found controller: {$class_name}");
// Process methods with Route attributes
foreach ($file_info['methods'] ?? [] as $method_name => $method_data) {
foreach ($file_info['public_static_methods'] ?? [] as $method_name => $method_data) {
foreach ($method_data['attributes'] ?? [] as $attr_name => $attr_instances) {
if ($attr_name === 'Route') {
// Get the first route pattern (index 0 is the first argument)
@@ -2143,7 +2143,7 @@ JS;
}
// Process methods with Route attributes
foreach ($file_info['methods'] ?? [] as $method_name => $method_data) {
foreach ($file_info['public_static_methods'] ?? [] as $method_name => $method_data) {
foreach ($method_data['attributes'] ?? [] as $attr_name => $attr_instances) {
if ($attr_name === 'Route') {
// Get the first route pattern (index 0 is the first argument)