diff options
| author | seth <[email protected]> | 2024-10-15 19:28:16 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-15 23:28:16 +0000 |
| commit | 8b48cbd5010e3ce8c41406aafcd10b920a927102 (patch) | |
| tree | 2402707e82a7afb4af39f37222afd0940f1422ff /src/index.ts | |
| parent | 08912b439bd61088dd849b9342a81341fa9e4a23 (diff) | |
tidy up (#328)
* nix: tidy up flake
* ci: tidy up workflows
* cleanup bindings
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 7 |
1 files changed, 5 insertions, 2 deletions
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()); |
