summaryrefslogtreecommitdiff
path: root/frontend/src/scenes/index.js
blob: c708c9a914d7a5d9377751c8c1102604e199a4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import React from 'react';
import { Redirect, Route, Switch } from 'react-router-dom';
import { GameBrowser } from '../components/game-browser/GameBrowser';
import { Lobby } from './Lobby';
import { Home } from '../components/home/Home';

export const Application = () => (
  <Switch>
    <Route path="/games" component={GameBrowser} />
    <Route path="/lobby" component={Lobby} />
    <Route path="/" component={Home} />
    <Redirect to="/" />
  </Switch>
);
bgstack15