fix path
This commit is contained in:
parent
f254d57db4
commit
f1a93bffb5
@ -64,7 +64,7 @@ const fs = require("fs").promises;
|
||||
const path = require("path");
|
||||
|
||||
// Path to JSON file
|
||||
const commentsFilePath = path.join(__dirname, "../json/gamepage/success.json");
|
||||
const commentsFilePath = path.join(__dirname, "./json/gamepage/success.json");
|
||||
|
||||
// Read JSON file
|
||||
async function readComments() {
|
||||
@ -112,7 +112,7 @@ router.post("/update-like", async (req, res) => {
|
||||
// Путь к JSON-файлу с корзиной
|
||||
const cartFilePath = path.join(
|
||||
__dirname,
|
||||
"../json/home-page-data/games-in-cart.json"
|
||||
"./json/home-page-data/games-in-cart.json"
|
||||
);
|
||||
|
||||
// Функция для чтения JSON-файла
|
||||
|
Loading…
Reference in New Issue
Block a user