MCPcopy Index your code
hub / github.com/CommandCodeAI/BaseAI / preFlight

Function preFlight

packages/baseai/src/dev/middleware/pre-flight.ts:3–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import {MiddlewareHandler} from 'hono';
2
3export const preFlight = (): MiddlewareHandler => {
4 return async function preFlight(c, next) {
5 if (c.req.method === 'OPTIONS') {
6 return new Response(null);
7 }
8 await next();
9 };
10};

Callers 1

runBaseServerFunction · 0.90

Calls 1

nextFunction · 0.50

Tested by

no test coverage detected