Skip to main content

Custom Routes API

Provides API to add custom pages into the App Builder.

customRoutes : CustomRoutesInterface[]

Accepts an array of CustomRoutesInterface objects, each specific to a route details

The overrides are applied by passing the array under the top-level customRoutes key to the Customization API config object.

CustomRoutesInterface

KeyTypeDescription
pathstringUnique string for route path.
exact?booleanTo validate route path
isPrivateRoute?booleanTo validate authentication
failureRedirectTo?stringFallback route path
routeProps?objectRoute props
componentReact.ComponentTypeCustom Route React Component
componentProps?anyCustom Route React Component Props

Use the example code given below showcasing how to add the custom routes into the App Builder.