GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
571 B

  1. import React, { Component } from 'react'
  2. import { Route, Redirect, Switch } from "react-router-dom";
  3. import StoryRoot from './routes/story/StoryRoot'
  4. import LogsRoot from './routes/logs/LogsRoot'
  5. export default class App extends Component {
  6. render() {
  7. return (
  8. <div className="App">
  9. <Switch>
  10. <Redirect exact path="/" to="/story/" />
  11. <Route path="/story/" component={StoryRoot}/>
  12. <Route path="/logs/" component={LogsRoot}/>
  13. </Switch>
  14. </div>
  15. );
  16. }
  17. }
  18. /* See ./common/Menu.js to change the top navbar */