mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
feat: initial impl of file proxy
This commit is contained in:
12
packages/convex/fileshare.ts
Normal file
12
packages/convex/fileshare.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { v } from "convex/values"
|
||||
import { apiKeyAuthenticatedQuery } from "./functions"
|
||||
import * as FileShare from "./model/fileshare"
|
||||
|
||||
export const findFileShare = apiKeyAuthenticatedQuery({
|
||||
args: {
|
||||
shareToken: v.string(),
|
||||
},
|
||||
handler: async (ctx, { shareToken }) => {
|
||||
return await FileShare.find(ctx, { shareToken })
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user