mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
17 lines
298 B
TypeScript
17 lines
298 B
TypeScript
import { Hono } from "hono"
|
|
import { apiKeyMiddleware } from "./auth"
|
|
import { convexMiddleware } from "./convex"
|
|
import { files } from "./files"
|
|
|
|
const app = new Hono()
|
|
|
|
app.use(convexMiddleware)
|
|
app.use(apiKeyMiddleware)
|
|
|
|
app.route("/", files)
|
|
|
|
export default {
|
|
port: 8081,
|
|
fetch: app.fetch,
|
|
}
|