u
This commit is contained in:
@@ -770,7 +770,15 @@ function renderRoutesOverview(operations, title = 'Dash API Routes Overview') {
|
||||
lines.push('');
|
||||
lines.push('### Routes');
|
||||
lines.push('');
|
||||
let currentSection = null;
|
||||
for (const op of operations) {
|
||||
const section = op.path.split('/').filter(Boolean)[0] || '/';
|
||||
if (section !== currentSection) {
|
||||
currentSection = section;
|
||||
lines.push('');
|
||||
lines.push(`### Section: ${section === '/' ? '/' : `/${section}`}`);
|
||||
lines.push('');
|
||||
}
|
||||
const params = summarizeOperationParams(op.operation, aliases);
|
||||
const returns = summarizeOperationReturns(op.operation, aliases);
|
||||
const hasSseResponse = Object.values(op.operation.responses || {}).some((response) =>
|
||||
|
||||
Reference in New Issue
Block a user