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.

22 lines
723 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 StoryContentRoot from './routes/story-content/StoryContentRoot'
  5. import LogsRoot from './routes/logs/LogsRoot'
  6. export default class App extends Component {
  7. render() {
  8. return (
  9. <div className="App">
  10. <Switch>
  11. <Redirect exact path="/" to="/story/" />
  12. <Route path="/story/:id(S[0-9a-z]{15})" component={StoryContentRoot}/>
  13. <Route path="/story/" component={StoryRoot}/>
  14. <Route path="/logs/" component={LogsRoot}/>
  15. </Switch>
  16. </div>
  17. );
  18. }
  19. }
  20. /* See ./common/Menu.js to change the top navbar */