mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
3
web/src/utils/resource.ts
Normal file
3
web/src/utils/resource.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export const getResourceUrl = (resource: Resource, withOrigin = true) => {
|
||||
return `${withOrigin ? window.location.origin : ""}/o/r/${resource.id}/${encodeURI(resource.filename)}`;
|
||||
};
|
Reference in New Issue
Block a user