Welcome to mirror list, hosted at ThFree Co, Russian Federation.

AppRoutes.js « src « ClientApp « React-CSharp « content « src - github.com/dotnet/spa-templates.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d93aefb1ccb4c18c65aa153c67761b7bfd655a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
////#if (IndividualLocalAuth)
import ApiAuthorzationRoutes from './components/api-authorization/ApiAuthorizationRoutes';
////#endif
import { Counter } from "./components/Counter";
import { FetchData } from "./components/FetchData";
import { Home } from "./components/Home";

const AppRoutes = [
  {
    index: true,
    element: <Home />
  },
  {
    path: '/counter',
    element: <Counter />
  },
////#if (!IndividualLocalAuth)
  {
    path: '/fetch-data',
    element: <FetchData />
  }
////#else
  {
    path: '/fetch-data',
    requireAuth: true,
    element: <FetchData />
  },
  ...ApiAuthorzationRoutes
////#endif
];

export default AppRoutes;