enable cors

This commit is contained in:
Ramnique Singh 2025-12-17 11:57:45 +05:30
parent 22906894ea
commit 8c686029cb

View file

@ -14,6 +14,7 @@ import { Agent } from "./agents/agents.js";
import { AskHumanResponsePayload, authorizePermission, createMessage, createRun, replyToHumanInputRequest, Run, stop, ToolPermissionAuthorizePayload } from './runs/runs.js';
import { IRunsRepo, CreateRunOptions, ListRunsResponse } from './runs/repo.js';
import { IBus } from './application/lib/bus.js';
import { cors } from 'hono/cors';
let id = 0;
@ -638,6 +639,7 @@ const routes = new Hono()
;
const app = new Hono()
.use("/*", cors())
.route("/", routes)
.get(
"/openapi.json",