11 lines
198 B
TypeScript
11 lines
198 B
TypeScript
export const useUtils = () => {
|
|
const normalizePath = (path: string) => {
|
|
return path.endsWith("/") ? path.slice(0, -1) : path;
|
|
};
|
|
|
|
return {
|
|
url: {
|
|
normalizePath,
|
|
},
|
|
};
|
|
};
|