mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix api listen url print
This commit is contained in:
parent
7413284581
commit
f200e63cb2
@ -55,7 +55,7 @@ export const base = new Elysia({ name: "base" })
|
||||
.as("plugin");
|
||||
|
||||
export const prefix = process.env.KYOO_PREFIX ?? "";
|
||||
export const app = new Elysia({ prefix })
|
||||
export const handlers = new Elysia({ prefix })
|
||||
.use(base)
|
||||
.use(auth)
|
||||
.guard(
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { swagger } from "@elysiajs/swagger";
|
||||
import Elysia from "elysia";
|
||||
import { app } from "./base";
|
||||
import { handlers } from "./base";
|
||||
import { processImages } from "./controllers/seed/images";
|
||||
import { migrate } from "./db";
|
||||
import { comment } from "./utils";
|
||||
@ -10,7 +10,7 @@ await migrate();
|
||||
// run image processor task in background
|
||||
processImages();
|
||||
|
||||
new Elysia()
|
||||
const app = new Elysia()
|
||||
.use(
|
||||
swagger({
|
||||
scalarConfig: {
|
||||
@ -83,7 +83,7 @@ new Elysia()
|
||||
},
|
||||
}),
|
||||
)
|
||||
.use(app)
|
||||
.use(handlers)
|
||||
.listen(3567);
|
||||
|
||||
console.log(`Api running at ${app.server?.hostname}:${app.server?.port}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user