organize imports

This commit is contained in:
Nathaniel Tampus
2023-05-01 15:15:49 +08:00
parent e38420c390
commit da7b4c40a3
25 changed files with 56 additions and 46 deletions

View File

@@ -1,13 +1,14 @@
import "dotenv/config";
import cors from "cors";
import type { Request, Response, NextFunction } from "express";
import "dotenv/config";
import type { NextFunction, Request, Response } from "express";
import express from "express";
import { createServer } from "http";
import session from "./middleware/session.js";
import { Server } from "socket.io";
import { init as initSocket } from "./socket/index.js";
import { db, INIT_TABLES } from "./db/index.js";
import { INIT_TABLES, db } from "./db/index.js";
import session from "./middleware/session.js";
import routes from "./routes/index.js";
import { init as initSocket } from "./socket/index.js";
const corsConfig = {
origin: process.env.CORS_ORIGIN || "http://localhost:3000",