Commit 0237d01e authored by Christopher Cottier's avatar Christopher Cottier

integration demo

parent b33ae44d
This diff is collapsed.
......@@ -14,12 +14,14 @@ export default function AuthRoute({children, ...rest}) {
render={({ location }) => {
if (isLoggedIn) {
if (location.pathname === "/login") {
return <Redirect to="/" />;
// return <Redirect to="/" />;
return children;
} else {
return children;
}
} else if (location.pathname !== "/login") {
return <Redirect to="/login" />;
// return <Redirect to="/login" />;
return children;
}
return children;
}}
......
class Config {
static inventoryUrl = "http://localhost:8080/api/products";
static promotionsUrl = "http://localhost:8081/api/promos";
static inventoryUrl = "http://localhost:8083/api/products";
static promotionsUrl = "http://localhost:8082/api/promos";
static sessionUrl = "http://localhost:8080//api/sessions";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment