mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 05:51:39 +00:00
13 lines
241 B
TypeScript
13 lines
241 B
TypeScript
|
|
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 }
|