feat: basic directory navigation
This commit is contained in:
@@ -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 })
|
||||
},
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user