mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
14 lines
372 B
JavaScript
14 lines
372 B
JavaScript
'use strict';
|
|
|
|
import useBasename from 'history/lib/useBasename';
|
|
import createBrowserHistory from 'history/lib/createBrowserHistory';
|
|
import AppConstants from './constants/application_constants';
|
|
|
|
|
|
// Remove the trailing slash if present
|
|
let baseUrl = AppConstants.baseUrl.replace(/\/$/, '');
|
|
|
|
export default useBasename(createBrowserHistory)({
|
|
basename: baseUrl
|
|
});
|