diff options
Diffstat (limited to 'web/api/src/index.ts')
| -rw-r--r-- | web/api/src/index.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/web/api/src/index.ts b/web/api/src/index.ts new file mode 100644 index 0000000..f30fda1 --- /dev/null +++ b/web/api/src/index.ts @@ -0,0 +1,20 @@ +import { Hono } from 'hono'; +import { CORE_VERSION } from '@tidyindex/core'; + +export interface Env { + // DATABASE_URL: string; + // KEY_CACHE: KVNamespace; + // ACCOUNT_METER: DurableObjectNamespace; +} + +const app = new Hono<{ Bindings: Env }>(); + +app.get('/', (c) => + c.json({ + name: 'tidyindex-api', + version: '0', + core: CORE_VERSION + }) +); + +export default app; |
