#!/usr/bin/env -S deno serve -A
import { Hono } from "jsr:@hono/hono@4";
import { getCookie, setCookie } from 'jsr:@hono/hono@4/cookie'
const app = new Hono();

app.get('/', (c) => {
setCookie(c, "cooky", "gingerbread", { maxAge: 900000 })
return c.text("ok!");
})

app.get('/get/:name', function (c) {
 getCookie(c, c.req.param("name"))
return c.text("ok!");
})

export default app;
