1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-03 21:10:05 +00:00

feat: added authorization route for web (#37)

This commit is contained in:
Muhammad Saad
2021-12-15 17:51:19 +05:00
committed by GitHub
parent 34e54934fd
commit d0a1457f44
4 changed files with 78 additions and 26 deletions

View File

@@ -19,7 +19,14 @@ function App() {
<ThemeProvider theme={theme}>
<HashRouter>
<Header />
<Login setTokens={setTokens} />
<Switch>
<Route exact path="/SASjsLogon">
<Login getCodeOnly />
</Route>
<Route path="/">
<Login setTokens={setTokens} />
</Route>
</Switch>
</HashRouter>
</ThemeProvider>
)
@@ -39,6 +46,9 @@ function App() {
<Route exact path="/SASjsStudio">
<Studio />
</Route>
<Route exact path="/SASjsLogon">
<Login getCodeOnly />
</Route>
</Switch>
</HashRouter>
</ThemeProvider>