tambahan
This commit is contained in:
@@ -8,6 +8,7 @@ import ApiKeyRoute from "./server/routes/apikey_route";
|
|||||||
import type { User } from "generated/prisma";
|
import type { User } from "generated/prisma";
|
||||||
import WaRoute from "./server/routes/wa_route";
|
import WaRoute from "./server/routes/wa_route";
|
||||||
import WebhookRoute from "./server/routes/webhook_route";
|
import WebhookRoute from "./server/routes/webhook_route";
|
||||||
|
import cors from "@elysiajs/cors";
|
||||||
|
|
||||||
const Docs = new Elysia().use(
|
const Docs = new Elysia().use(
|
||||||
Swagger({
|
Swagger({
|
||||||
@@ -35,6 +36,7 @@ const Api = new Elysia({
|
|||||||
.use(WebhookRoute);
|
.use(WebhookRoute);
|
||||||
|
|
||||||
const app = new Elysia()
|
const app = new Elysia()
|
||||||
|
.use(cors())
|
||||||
.use(Api)
|
.use(Api)
|
||||||
.use(Docs)
|
.use(Docs)
|
||||||
.use(Auth)
|
.use(Auth)
|
||||||
|
|||||||
Reference in New Issue
Block a user