You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
722 B
TypeScript

7 years ago
import * as React from 'react';
import { HashRouter } from 'react-router-dom';
7 years ago
import './App.css';
import { EteSyncContext } from './EteSyncContext';
import { RouteResolver } from './routes';
export const routeResolver = new RouteResolver({
home: '',
journals: {
_base: 'journals',
_id: {
_base: ':journalUid',
items: {
_base: 'items',
_id: {
_base: ':entryUid',
},
},
entries: {
_base: 'entries',
_id: {
_base: ':entryUid',
},
},
},
},
});
7 years ago
class App extends React.Component {
render() {
return (
<HashRouter>
<EteSyncContext />
</HashRouter>
7 years ago
);
}
}
export default App;