Home / Function/ registerTreeManipulationRoutes() — fiber Function Reference

registerTreeManipulationRoutes() — fiber Function Reference

Architecture documentation for the registerTreeManipulationRoutes() function in router_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  39fceb5e_fdd3_6f63_9730_22fcbb125d33["registerTreeManipulationRoutes()"]
  326d7e00_9e4f_d854_0c78_b9c0c93e5537["router_test.go"]
  39fceb5e_fdd3_6f63_9730_22fcbb125d33 -->|defined in| 326d7e00_9e4f_d854_0c78_b9c0c93e5537
  505a9f01_2fdd_b544_cdae_2b52dc782413["Test_App_Rebuild_Tree()"]
  505a9f01_2fdd_b544_cdae_2b52dc782413 -->|calls| 39fceb5e_fdd3_6f63_9730_22fcbb125d33
  7b4a5652_1202_e60d_2701_10cb8e97c758["Test_Route_Registration_Prevent_Duplicate_With_Middleware()"]
  7b4a5652_1202_e60d_2701_10cb8e97c758 -->|calls| 39fceb5e_fdd3_6f63_9730_22fcbb125d33
  style 39fceb5e_fdd3_6f63_9730_22fcbb125d33 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

router_test.go lines 828–843

func registerTreeManipulationRoutes(app *App, middleware ...func(Ctx) error) {
	converted := make([]any, len(middleware))
	for i, h := range middleware {
		converted[i] = h
	}

	app.Get("/test", func(c Ctx) error {
		app.Get("/dynamically-defined", func(c Ctx) error {
			return c.SendStatus(StatusOK)
		})

		app.RebuildTree()

		return c.SendStatus(StatusOK)
	}, converted...)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does registerTreeManipulationRoutes() do?
registerTreeManipulationRoutes() is a function in the fiber codebase, defined in router_test.go.
Where is registerTreeManipulationRoutes() defined?
registerTreeManipulationRoutes() is defined in router_test.go at line 828.
What calls registerTreeManipulationRoutes()?
registerTreeManipulationRoutes() is called by 2 function(s): Test_App_Rebuild_Tree, Test_Route_Registration_Prevent_Duplicate_With_Middleware.

Analyze Your Own Codebase

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

Try Supermodel Free