feat: basic directory navigation

This commit is contained in:
2025-09-17 00:04:12 +00:00
parent d028e69b4f
commit 8f7a9559c0
17 changed files with 456 additions and 47 deletions

View File

@@ -28,9 +28,10 @@ export const fetchFiles = authenticatedQuery({
export const fetchDirectoryContent = authenticatedQuery({
args: {
directoryId: v.optional(v.id("directories")),
path: v.optional(v.string()),
},
handler: async (ctx, { directoryId }): Promise<DirectoryItem[]> => {
return await Directories.fetchContent(ctx, directoryId)
handler: async (ctx, { directoryId, path }): Promise<DirectoryItem[]> => {
return await Directories.fetchContent(ctx, { directoryId, path })
},
})