How to use the boring-router.schema function in boring-router

To help you get started, we’ve selected a few boring-router examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github makeflow / remote-workspace / src / client / @routes.ts View on Github external
import {
  RootRouteMatchType,
  Router as BoringRouter,
  schema,
} from 'boring-router';
import {BrowserHistory} from 'boring-router-react';

export const workspaceRouteSchema = schema({
  home: {
    $match: '',
  },
  create: {
    $query: {
      template: true,
      params: true,
    },
  },
  list: {
    $query: {
      search: true,
    },
  },
});

boring-router

A type-safe MobX router with parallel routing support.

MIT
Latest version published 1 year ago

Package Health Score

52 / 100
Full package analysis

Similar packages