route.js 557 B

12345678910111213141516171819202122232425
  1. import * as React from "react";
  2. import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
  3. import Reports from "./Reports.js";
  4. import CloudCostReports from "./cloudCostReports.js";
  5. const Routes = () => {
  6. return (
  7. <Router>
  8. <Switch>
  9. <Route exact path="/">
  10. <Reports />
  11. </Route>
  12. <Route exact path="/allocation">
  13. <Reports />
  14. </Route>
  15. <Route exact path="/cloud">
  16. <CloudCostReports />
  17. </Route>
  18. </Switch>
  19. </Router>
  20. );
  21. };
  22. export default Routes;