Skip to content

Commit 0488f7e

Browse files
committed
note about inconsistency about /v2 in routes
1 parent 250e75e commit 0488f7e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/support/Routes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,8 @@ private function generate_tree(array $blocks, string $filename, string $dir): Ro
494494
if ($doc_class !== null && $doc_class->module !== null) {
495495
$route_url = '/api/v2/module/' . $doc_class->module . '/' . trim($route_url, '/');
496496
} else {
497+
// TODO: /v2/ is currently manually part of route strings; can update to remove from all
498+
// routes and just add in here, probably? Currently inconsistent with modules above.
497499
$route_url = '/api/' . trim($route_url, '/');
498500
}
499501

0 commit comments

Comments
 (0)