-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
41 lines (35 loc) · 1.09 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import './App.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import { BrowserRouter } from 'react-router-dom';
import store from "./store.js"
import Auth from 'j-toker';
import { Provider } from 'react-redux';
import ApiURL from './apiClient';
const API_ROOT = ApiURL();
Auth.configure({
apiUrl: API_ROOT,
signOutPath: '/user/sign_out',
emailSignInPath: '/user/sign_in',
emailRegistrationPath: '/user',
accountUpdatePath: '/user',
accountDeletePath: '/user',
passwordResetPath: '/user/password',
passwordUpdatePath: '/user/password',
tokenValidationPath: '/user/validate_token',
confirmationSuccessUrl: function() {
return `${process.env.REACT_APP_URL}/confirm`;
}
});
injectTapEventPlugin();
ReactDOM.render(
<Provider store={store}>
<BrowserRouter>
<App store={store}/>
</BrowserRouter>
</Provider>, document.getElementById('root')
);
registerServiceWorker();