aboutsummaryrefslogtreecommitdiff
path: root/web/api/src/index.ts
blob: f30fda168f8b43d8a93ea70ac633528644f0716a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;