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
584 B

  1. import React, { Component } from 'react'
  2. import { Route, Router, Redirect, Switch } from "react-router-dom";
  3. import StoryRoot from './routes/story/StoryRoot';
  4. import LogsIndex from './routes/logs/LogsIndex';
  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={LogsIndex}/>
  13. </Switch>
  14. </div>
  15. );
  16. }
  17. }
  18. /* See ./common/Menu.js to change the top navbar */