7 lines
215 B
JavaScript
7 lines
215 B
JavaScript
|
import queryString from 'query-string';
|
||
|
|
||
|
export const frontendURL = (path, params) => {
|
||
|
const stringifiedParams = params ? `?${queryString.stringify(params)}` : '';
|
||
|
return `/app/${path}${stringifiedParams}`;
|
||
|
};
|