tangled
alpha
login
or
join now
openstatus.dev
/
openstatus
6
fork
atom
Openstatus
www.openstatus.dev
6
fork
atom
overview
issues
pulls
pipelines
๐ cors opoenapi
Thibault Le Ouay
2 years ago
45d49c17
2d8f2f10
+3
1 changed file
expand all
collapse all
unified
split
apps
server
src
v1
index.ts
+3
apps/server/src/v1/index.ts
···
1
1
import { OpenAPIHono } from "@hono/zod-openapi";
2
2
+
import { cors } from "hono/cors";
2
3
import { logger } from "hono/logger";
3
4
4
5
import { page } from "@openstatus/db/src/schema";
···
23
24
};
24
25
25
26
export const api = new OpenAPIHono<{ Variables: Variables }>();
27
27
+
28
28
+
api.use("/openapi", cors());
26
29
27
30
api.doc("/openapi", {
28
31
openapi: "3.0.0",