Last active
January 21, 2019 16:15
-
-
Save Franpastoragusti/910bee279685baea09ceca6b1263b109 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { Route, Switch } from "react-router-dom"; | |
import { Callback } from "../components/auth/callback"; | |
import { Logout } from "../components/auth/logout"; | |
import { LogoutCallback } from "../components/auth/logoutCallback"; | |
import { PrivateRoute } from "./privateRoute"; | |
import { Register } from "../components/auth/register"; | |
import { SilentRenew } from "../components/auth/silentRenew"; | |
import {PublicPage} from "../components/publicPage" | |
import {PrivatePage} from "../components/privatePage" | |
export const Routes = ( | |
<Switch> | |
<Route exact={true} path="/signin-oidc" component={Callback} /> | |
<Route exact={true} path="/logout" component={Logout} /> | |
<Route exact={true} path="/logout/callback" component={LogoutCallback} /> | |
<Route exact={true} path="/register" component={Register} /> | |
<Route exact={true} path="/silentrenew" component={SilentRenew} /> | |
<PrivateRoute path="/dashboard" component={PrivatePage} /> | |
<Route path="/" component={PublicPage} /> | |
</Switch> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment