feat: basic directory navigation

This commit is contained in:
2025-09-17 00:04:12 +00:00
parent 822ffc12df
commit c7f83fc65a
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 })
},
})