removed electron stuff from docker ver
This commit is contained in:
@@ -30,39 +30,6 @@ const userRoutes = require("./electron/api/user/user.routes");
|
||||
const listRoutes = require("./electron/api/list/list.routes");
|
||||
const anilistRoute = require("./electron/api/anilist/anilist");
|
||||
|
||||
const fs = require("fs");
|
||||
|
||||
try {
|
||||
console.log("--- DEBUGGING PATHS ---");
|
||||
|
||||
// 1. Check where we are currently running
|
||||
console.log("Current Directory:", __dirname);
|
||||
|
||||
// 2. Check if 'electron' exists
|
||||
const electronPath = path.join(__dirname, "electron");
|
||||
if (fs.existsSync(electronPath)) {
|
||||
console.log("✅ electron folder found.");
|
||||
} else {
|
||||
console.log("❌ electron folder missing!");
|
||||
}
|
||||
|
||||
// 3. Check 'electron/api/rpc' specifically
|
||||
const rpcPath = path.join(__dirname, "electron", "api", "rpc");
|
||||
if (fs.existsSync(rpcPath)) {
|
||||
console.log("✅ electron/api/rpc folder found. Contents:");
|
||||
// LIST EVERYTHING INSIDE THE RPC FOLDER
|
||||
console.log(fs.readdirSync(rpcPath));
|
||||
} else {
|
||||
console.log(`❌ electron/api/rpc folder NOT found at: ${rpcPath}`);
|
||||
// Check parent folder to see what IS there
|
||||
const parent = path.join(__dirname, "electron", "api");
|
||||
console.log("Contents of electron/api:", fs.readdirSync(parent));
|
||||
}
|
||||
console.log("-----------------------");
|
||||
} catch (e) {
|
||||
console.log("Debug Error:", e);
|
||||
}
|
||||
|
||||
fastify.addHook("preHandler", async (request) => {
|
||||
const auth = request.headers.authorization;
|
||||
if (!auth) return;
|
||||
|
||||
Reference in New Issue
Block a user