Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
csulit authored Oct 23, 2024
1 parent 2ccde6c commit e542848
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import "jsr:@std/dotenv/load";
import { type Context, Hono, cors } from "jsr:@hono/hono";
import { type Context, Hono } from "jsr:@hono/hono";

import { dbPool } from "./config/postgres.ts";
import { getKvInstance, listenQueue, sendMessage } from "./config/deno-kv.ts";

const app = new Hono();
const kv = await getKvInstance();

app.use(cors({
origin: "*",
}));

app.get("/api/properties", async (c: Context) => {
using client = await dbPool.connect();
const query = c.req.query() as unknown as {
Expand Down

0 comments on commit e542848

Please sign in to comment.