Skip to content

Commit

Permalink
Update echo service
Browse files Browse the repository at this point in the history
  • Loading branch information
stekhn committed Jul 22, 2024
1 parent 63dc85a commit 4190113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
8 changes: 0 additions & 8 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ const keyName = "key";
const pathName = "path";
const uniqueKeyName = "uniqueKey";

console.log("basename", basename);

const generateRoutePath = (node: Node, parent?: Node) => {
const parentUniqueKey = get(parent, uniqueKeyName);
const uniqueKey = parentUniqueKey
Expand Down Expand Up @@ -80,12 +78,6 @@ const App: React.FunctionComponent<AppProps> = ({ theme }) => {
const routeComponents = renderRoute(routeList);
const flatRouteComponents = flattenDeep(routeComponents);

console.log(
"flatRouteComponents",
// @ts-ignore
flatRouteComponents.map((c) => c.props.path),
);

return (
<BrowserRouter basename={basename}>
<AutoSwitchLayout>
Expand Down
6 changes: 2 additions & 4 deletions src/pages/Details/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,13 @@ const Details: React.FunctionComponent = () => {
const { id } = useParams<RouteParams>();
const wire = wires.find((item) => item.id === id);
const [url, setUrl] = useState<string>(
"http://accio.germanywestcentral.cloudapp.azure.com:8000/generate-enriched-report",
"https://europe-west3-brdata-live.cloudfunctions.net/echo",
);
const [body, setBody] = useState<GenericRequest>(mockResponse);

useEffect(() => {
if (id === "demo") {
setUrl(
"https://br24-geschichten-function.azurewebsites.net/api/Repeater?code=hwgMw21CRcLF_6DZve8hFWqKnzDst2NzrdAwztrObka4AzFuo0_gKg%3D%3D",
);
setUrl("https://europe-west3-brdata-live.cloudfunctions.net/echo");
setBody(mockResponse);
} else {
setUrl(
Expand Down

0 comments on commit 4190113

Please sign in to comment.