From 1b3fdcbc9c9de7b9975cfb9877e1406eb605b870 Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Mon, 21 Nov 2022 16:37:55 +0100 Subject: [PATCH] moved index.js backend --- index.js => backend/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename index.js => backend/index.js (98%) diff --git a/index.js b/backend/index.js similarity index 98% rename from index.js rename to backend/index.js index e562709..f93e824 100644 --- a/index.js +++ b/backend/index.js @@ -13,8 +13,8 @@ const { fetch } = require('cross-fetch') const fs = require('fs') -const static_files_path = path.join(__dirname, './frontend/') -const cache_folder_path = path.join(__dirname, './cache/') +const static_files_path = path.join(__dirname, '../frontend/') +const cache_folder_path = path.join(__dirname, '../cache/') const volt_team_root_team_id = process.env.volt_team_root_team_id const volt_team_root_team_name = process.env.volt_team_root_team_name @@ -24,6 +24,7 @@ if (!fs.existsSync(cache_folder_path)) { fs.mkdirSync(cache_folder_path) } + // volt_team_api_key function checkOrigin(origin){