Skip to content

armgit / fx0

Public Imported from GitHub
0

A lightweight design agent built with libfx. Describe a page and an agent writes it as one HTML file.

TypeScript
280 B
Raw Blame
import { cancelCurrent } from '../../../lib/agent'
import { withSessionRoute } from '../../../lib/route-auth'

export const maxDuration = 800

export const POST = withSessionRoute(async (_request, { host }) => {
  return Response.json({ cancelled: await cancelCurrent(host) })
})