• Registers routes to the server app.

    Parameters

    • app: default

      Server instance.

    • routes: {
          component: string;
          layout?: string | typeof Layout;
          method?: HttpMethod;
          requireAuth?: boolean;
          route: string;
          title: string;
      }[]

      List of routes to register.

    Returns void