Skip to content

isopruefi-frontend v1.0.0


isopruefi-frontend / App / default

Function: default()

default(): Element

Defined in: App.tsx:23

Main application routing component.
Defines all routes for the app, including public, protected (user/admin), and admin-only routes.
Uses ProtectedRoute to restrict access based on user roles.

  • "/" : Public welcome page.
  • "/signin" : Public sign-in page.
  • "/signup" : Public sign-up page.
  • "/user" : Protected route for users and admins.
  • "/admin" : Protected route for admins only.
  • "*" : Fallback route (renders Welcome).

Returns

Element

The rendered application routes.