```ts app.get("/:id", HonoAuthMiddleware, BindDurableObjectMiddleware, async (c) => { const id = c

app.get("/:id", HonoAuthMiddleware, BindDurableObjectMiddleware, async (c) => {
  const id = c.req.param("id");

  const notification = await c.var.notifications.get(id);

  if (!notification) return c.body(null, 204);

  return c.json(notification);
});
Was this page helpful?