mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-27 20:29:44 +02:00
enable cors
This commit is contained in:
parent
6478d02260
commit
75db69b27e
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 { AskHumanResponsePayload, authorizePermission, createMessage, createRun, replyToHumanInputRequest, Run, stop, ToolPermissionAuthorizePayload } from './runs/runs.js';
|
||||||
import { IRunsRepo, CreateRunOptions, ListRunsResponse } from './runs/repo.js';
|
import { IRunsRepo, CreateRunOptions, ListRunsResponse } from './runs/repo.js';
|
||||||
import { IBus } from './application/lib/bus.js';
|
import { IBus } from './application/lib/bus.js';
|
||||||
|
import { cors } from 'hono/cors';
|
||||||
|
|
||||||
let id = 0;
|
let id = 0;
|
||||||
|
|
||||||
|
|
@ -638,6 +639,7 @@ const routes = new Hono()
|
||||||
;
|
;
|
||||||
|
|
||||||
const app = new Hono()
|
const app = new Hono()
|
||||||
|
.use("/*", cors())
|
||||||
.route("/", routes)
|
.route("/", routes)
|
||||||
.get(
|
.get(
|
||||||
"/openapi.json",
|
"/openapi.json",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue