Skip to content

Commit

Permalink
refactor: re-export api
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky3028 committed Sep 18, 2023
1 parent 62f3e68 commit 5fef757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions apps/auto-run-ac-api/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { defaultTriggersApi } from './defaultTriggers';
export { triggersApi } from './triggersApi';
7 changes: 2 additions & 5 deletions apps/auto-run-ac-api/src/worker.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import type { SharedEnv } from 'cloudflare-env';
import { OpenAPIHono } from '@hono/zod-openapi';
import type { Env } from './model';
import { defaultTriggersApi } from './api/defaultTriggers';
import { triggersApi } from './api/triggersApi';
import { defaultTriggersApi, triggersApi } from './api';

const app = new OpenAPIHono<{ Bindings: SharedEnv & Env }>();
const app = new OpenAPIHono();

app.doc('/doc', {
openapi: '3.1.0',
Expand Down

0 comments on commit 5fef757

Please sign in to comment.