7 lines
198 B
TypeScript
7 lines
198 B
TypeScript
import { PLUGIN_BASE_URL } from '../constants';
|
|
|
|
// Prefixes the route with the base URL of the plugin
|
|
export function prefixRoute(route: string): string {
|
|
return `${PLUGIN_BASE_URL}/${route}`;
|
|
}
|