mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
13 lines
364 B
JavaScript
13 lines
364 B
JavaScript
'use strict';
|
|
|
|
import { useRouterHistory } from 'react-router';
|
|
import createBrowserHistory from 'history/lib/createBrowserHistory';
|
|
|
|
import AppConstants from './constants/application_constants';
|
|
|
|
|
|
// Remove the trailing slash if present
|
|
let basename = AppConstants.baseUrl.replace(/\/$/, '');
|
|
|
|
export default useRouterHistory(createBrowserHistory)({ basename });
|