mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
feat: basic recent file browsing
This commit is contained in:
@@ -188,3 +188,12 @@ export const openFile = authenticatedMutation({
|
||||
return await FileSystem.openFile(ctx, { fileId })
|
||||
},
|
||||
})
|
||||
|
||||
export const fetchRecentFiles = authenticatedQuery({
|
||||
args: {
|
||||
limit: v.number(),
|
||||
},
|
||||
handler: async (ctx, { limit }) => {
|
||||
return await FileSystem.fetchRecentFiles(ctx, { limit })
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user