import type { Route } from '@chubbyts/chubbyts-framework/dist/router/route';import { createOptionsRoute } from '@chubbyts/chubbyts-framework/dist/router/route';const route: Route = createOptionsRoute({ path: '/api/users/:id', handler: corsHandler,}); Copy
import type { Route } from '@chubbyts/chubbyts-framework/dist/router/route';import { createOptionsRoute } from '@chubbyts/chubbyts-framework/dist/router/route';const route: Route = createOptionsRoute({ path: '/api/users/:id', handler: corsHandler,});