1
0
Fork 0
mirror of https://github.com/voltbonn/diversity.volt.link.git synced 2024-06-24 23:10:57 +00:00

moved index.js backend

This commit is contained in:
thomasrosen 2022-11-21 16:37:55 +01:00
parent f7b95afb74
commit 1b3fdcbc9c

View file

@ -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){