From 8b48cbd5010e3ce8c41406aafcd10b920a927102 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 15 Oct 2024 19:28:16 -0400 Subject: tidy up (#328) * nix: tidy up flake * ci: tidy up workflows * cleanup bindings --- src/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/index.ts') 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()); -- cgit v1.2.3