upd
This commit is contained in:
+2
-2
@@ -12,6 +12,7 @@ import { serversTable } from "./db/schema/servers";
|
||||
import { eq } from "drizzle-orm";
|
||||
import cron from "node-cron";
|
||||
import { commentsController } from "./controllers/commentsController";
|
||||
import { swagger } from "@elysiajs/swagger";
|
||||
|
||||
const app = new Elysia();
|
||||
|
||||
@@ -20,7 +21,6 @@ app.use(
|
||||
origin: "*",
|
||||
})
|
||||
);
|
||||
|
||||
app.use(authController);
|
||||
app.use(usersController);
|
||||
app.use(serversController);
|
||||
@@ -29,7 +29,7 @@ app.use(appsController);
|
||||
app.use(clientsController);
|
||||
app.use(commentsController);
|
||||
|
||||
app.listen(3000);
|
||||
app.use(swagger()).listen(3000);
|
||||
|
||||
async function checkServersStatus() {
|
||||
const servers = await db.query.serversTable.findMany();
|
||||
|
||||
Reference in New Issue
Block a user