mirror of
https://github.com/dsec-hub/dsec-notebook.git
synced 2026-09-22 07:24:27 +00:00
7 lines
218 B
TypeScript
7 lines
218 B
TypeScript
export function unitPath(code: string): string {
|
|
return `/${encodeURIComponent(code)}`;
|
|
}
|
|
|
|
export function postPath(code: string, postId: string): string {
|
|
return `${unitPath(code)}/${encodeURIComponent(postId)}`;
|
|
}
|