update 00000
This commit is contained in:
parent
c562a82d70
commit
af0d91ed94
1 changed files with 3 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ const allowedOrigins = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const app = new Elysia({
|
const app = new Elysia({
|
||||||
prefix: "/api", // Add this prefix
|
prefix: "",
|
||||||
tags: ["Default"],
|
tags: ["Default"],
|
||||||
})
|
})
|
||||||
.use(
|
.use(
|
||||||
|
|
@ -62,6 +62,8 @@ const app = new Elysia({
|
||||||
// all routes here
|
// all routes here
|
||||||
app.use(api);
|
app.use(api);
|
||||||
|
|
||||||
|
app.get("/", () => "API root is working");
|
||||||
|
|
||||||
app.listen(ENV.SERVER_PORT, () => {
|
app.listen(ENV.SERVER_PORT, () => {
|
||||||
console.log(`🦊 Elysia is running at ${ENV.SERVER_URL}:${ENV.SERVER_PORT}`);
|
console.log(`🦊 Elysia is running at ${ENV.SERVER_URL}:${ENV.SERVER_PORT}`);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue