-
-
Notifications
You must be signed in to change notification settings - Fork 839
Closed
Description
Hi @andersevenrud
Due to this comment, imagine we have capabilities method with no argument in client-sie:
method call:
vfs.capabilities();
osjs-client/src/vfs.js
export const capabilities = (adapter, mount) => () => {
const cached = capabilityCache[mount.name];
if (cached) {
return Promise.resolve(cached);
}
return adapter.capabilities(mount)
.then(capabilities => {
capabilityCache[mount.name] = capabilities;
return capabilities;
});
};
osjs-client/src/adapters/vfs/system.js
capabilities: () => request('capabilities', {}, 'json').then(({body}) => {
return body;
}),
But server-side needs path argument to find the mountpoint here. I 've tried to solve it, but did not come up with solution!
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
mahsashadi commentedon Jan 19, 2022
@andersevenrud sorry for re-mentioning
andersevenrud commentedon Jul 28, 2022
Closing because #804 superseeds this and there's already an ongoing discussion :)