mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 05:51:39 +00:00
feat: auth pkg and file proxy scaffold
Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
12
apps/file-proxy/files.ts
Normal file
12
apps/file-proxy/files.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Hono } from "hono"
|
||||
|
||||
const h = new Hono().basePath("/files")
|
||||
|
||||
h.get("/:fileId", async (c) => {
|
||||
const fileId = c.req.param("fileId")
|
||||
if (!fileId) {
|
||||
return c.json({ error: "File ID is required" }, 400)
|
||||
}
|
||||
})
|
||||
|
||||
export { h as files }
|
||||
Reference in New Issue
Block a user