Skip to main content

Configuring Routes

Routes are configured in App Panel → Packages → AppBuilder → Routes.

Adding a CRUD Page Route

Use this for any page built with BaseCrudView — no React component needed.

  1. Click Add Route
  2. Set Path — e.g. /app/patients
  3. Set Page Type to crud
  4. Set API Endpoint (in extra params) — the URL of your BaseCrudView, e.g. /patients/
  5. Save

The frontend will render a full list/create/edit/delete interface at /app/patients, backed by your CRUD view at /patients/.

Appbuilder Crud Route

Adding a Custom Page Route

Use this for dashboards, wizards, or any custom React component.

  1. Click Add Route
  2. Set Path — e.g. /app/dashboard
  3. Set Page Type to custom
  4. Set Component — must exactly match the export name in src/custom/pages/index.js
  5. Save

Appbuilder Custom Route

Route Paths

  • All paths must start with /app — e.g. /app/patients, /app/dashboard
  • When saving, all existing routes are replaced — include every route each time you save

Viewing the Initializer Response

To see what routes the frontend is receiving, open:

GET /appbuilder/initializer/

The routes array in the response shows all configured routes for the current user's role.