diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/env.ts | 6 | ||||
| -rw-r--r-- | src/index.ts | 7 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/env.ts b/src/env.ts deleted file mode 100644 index 2ee3db7..0000000 --- a/src/env.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type Bindings = { - REDIRECT_ROOT?: string; - TEAWIE_API: KVNamespace; -}; - -export type Variables = Record<string, never>; diff --git a/src/index.ts b/src/index.ts index 82eaad9..5f4ba34 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,6 @@ import { prettyJSON } from "hono/pretty-json"; import { swaggerUI } from "@hono/swagger-ui"; import { OpenAPIHono, createRoute } from "@hono/zod-openapi"; import { VERSION } from "./consts"; -import { Bindings, Variables } from "./env"; import { ListTeawiesParams, ListTeawiesResponse, @@ -11,7 +10,11 @@ import { } from "./schemas"; import { imageUrls } from "./teawie"; -const app = new OpenAPIHono<{ Bindings: Bindings; Variables: Variables }>(); +type Bindings = { + REDIRECT_ROOT?: string; + TEAWIE_API: KVNamespace; +}; +const app = new OpenAPIHono<{ Bindings: Bindings }>(); app.use("*", logger()); app.use("*", prettyJSON()); |
