fix(v3-nested): support aliases in nested CRUD routes
1. Added 'entry' alias for 'journal_entry' in object definitions.\n2. Updated nested router to resolve physical table names from the registry before ID resolution.\n3. Updated ID resolution helpers to recognize 'entry' prefix.\nThis resolves 404 errors when using shorter aliases in nested paths (e.g., /journal/{id}/entry/).
This commit is contained in:
@@ -54,3 +54,6 @@ journal_obj_li = {
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
# Aliases for shorter/cleaner URLs
|
||||
journal_obj_li['entry'] = journal_obj_li['journal_entry']
|
||||
|
||||
Reference in New Issue
Block a user