MCPcopy
hub / github.com/gofiber/fiber / copyRoute

Method copyRoute

router.go:499–520  ·  view source on GitHub ↗
(route *Route)

Source from the content-addressed store, hash-verified

497}
498
499func (*App) copyRoute(route *Route) *Route {
500 return &Route{
501 // Router booleans
502 use: route.use,
503 mount: route.mount,
504 star: route.star,
505 root: route.root,
506 autoHead: route.autoHead,
507 caseSensitive: route.caseSensitive,
508
509 // Path data
510 path: route.path,
511 routeParser: route.routeParser,
512
513 // Public data
514 Path: route.Path,
515 Params: route.Params,
516 Name: route.Name,
517 Method: route.Method,
518 Handlers: route.Handlers,
519 }
520}
521
522func (app *App) normalizePath(path string) string {
523 if path == "" {

Callers 3

processSubAppsRoutesMethod · 0.95
mountMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected