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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user