x
This commit is contained in:
1 parent
6cfe39b1ff
commit
c1c3a43d7d
8 files changed
+21
-6
No files matched your search
@@ -38,6 +38,8 @@ const app = new Elysia()
|
||||
"http://localhost:5174", // Admin
|
||||
"http://localhost:4173",
|
||||
"http://localhost:3001", // SSR Next.js
|
||||
"https://react5173.kitizone.com",
|
||||
"https://elysia3051.kitizone.com"
|
||||
],
|
||||
methods: ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
|
||||
credentials: true,
|
||||
@@ -88,7 +90,7 @@ const app = new Elysia()
|
||||
.group("/api", (app) =>
|
||||
app.use(authRoute).use(categoriesRoute).use(productsRoute).use(uploadRoute).use(heroRoute).use(ordersRoute).use(settingsRoute).use(articlesRoute).use(tiktokRoute).use(rawMaterialsRoute).use(shopeeRoute).use(tiktokOrderRoute).use(lazadaOrderRoute).use(customersRoute).use(couponsRoute).use(reviewsRoute).use(promotionsRoute).use(pagesRoute).use(paymentsRoute).use(profileRoute)
|
||||
)
|
||||
.listen(PORT);
|
||||
.listen({ port: PORT, hostname: "0.0.0.0" });
|
||||
|
||||
console.log(
|
||||
`🌿 HomAroma API is running at http://${app.server?.hostname}:${app.server?.port}`
|
||||
|
||||
Reference in new issue
Block a user