oprava bugu 2
This commit is contained in:
@@ -70,7 +70,7 @@ app.use(
|
||||
// API endpoint to save config
|
||||
app.post('/api/save-config', async (req, res) => {
|
||||
try {
|
||||
const configPath = path.join(__dirname, 'app/src/assets/config.json');
|
||||
const configPath = path.join(__dirname, 'dist/assets/config.json');
|
||||
const configData = JSON.stringify(req.body, null, 2);
|
||||
|
||||
await fs.writeFile(configPath, configData, 'utf8');
|
||||
|
||||
Reference in New Issue
Block a user