mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 08:26:22 +02:00
enable cors
This commit is contained in:
parent
22906894ea
commit
8c686029cb
1 changed files with 2 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue