Home / Function/ getAllPaths() — astro Function Reference

getAllPaths() — astro Function Reference

Architecture documentation for the getAllPaths() function in generate-routes-json.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  fb74c78c_04f8_7b51_cb60_ee71ba657144["getAllPaths()"]
  55782c85_47d4_4354_44a2_7507d9d6dbee["PathTrie"]
  fb74c78c_04f8_7b51_cb60_ee71ba657144 -->|defined in| 55782c85_47d4_4354_44a2_7507d9d6dbee
  8640426d_7494_3130_6574_2a01f8ff809d["createRoutesFile()"]
  8640426d_7494_3130_6574_2a01f8ff809d -->|calls| fb74c78c_04f8_7b51_cb60_ee71ba657144
  1516aa5b_1a39_c867_d966_059e1c41856a["dfs()"]
  fb74c78c_04f8_7b51_cb60_ee71ba657144 -->|calls| 1516aa5b_1a39_c867_d966_059e1c41856a
  style fb74c78c_04f8_7b51_cb60_ee71ba657144 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/cloudflare/src/utils/generate-routes-json.ts lines 159–163

	getAllPaths(): [string[][], boolean] {
		const allPaths: string[][] = [];
		this.dfs(this.root, [], allPaths);
		return [allPaths, this.returnHasWildcard];
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does getAllPaths() do?
getAllPaths() is a function in the astro codebase, defined in packages/integrations/cloudflare/src/utils/generate-routes-json.ts.
Where is getAllPaths() defined?
getAllPaths() is defined in packages/integrations/cloudflare/src/utils/generate-routes-json.ts at line 159.
What does getAllPaths() call?
getAllPaths() calls 1 function(s): dfs.
What calls getAllPaths()?
getAllPaths() is called by 1 function(s): createRoutesFile.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free