From 2f33d2545a1aca7dc72ebee1b3bdbe583dd9c0a1 Mon Sep 17 00:00:00 2001 From: Denis Shatskiy Date: Mon, 14 Jul 2025 15:57:58 +0700 Subject: [PATCH] refactor: Update server configuration and filter API endpoints to use a new directory structure for improved organization --- backend/server.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/server.js b/backend/server.js index 03acfc4..3cb7e4c 100644 --- a/backend/server.js +++ b/backend/server.js @@ -589,7 +589,7 @@ app.get('/api/server-configs/:serverId', async (req, res) => { const { serverId } = req.params; const params = { Bucket: BUCKET_NAME, - Key: `config-${serverId}.txt`, + Key: `filter-manager/config-${serverId}.txt`, }; try { @@ -617,7 +617,7 @@ app.post('/api/server-configs/:serverId', async (req, res) => { const params = { Bucket: BUCKET_NAME, - Key: `config-${serverId}.txt`, + Key: `filter-manager/config-${serverId}.txt`, Body: config, ContentType: 'text/plain', }; @@ -636,7 +636,7 @@ app.delete('/api/server-configs/:serverId', async (req, res) => { const { serverId } = req.params; const params = { Bucket: BUCKET_NAME, - Key: `config-${serverId}.txt`, + Key: `filter-manager/config-${serverId}.txt`, }; try { @@ -655,7 +655,7 @@ app.get('/api/server-filters/:serverId', async (req, res) => { const { serverId } = req.params; const params = { Bucket: BUCKET_NAME, - Key: `server-filters-${serverId}.json`, + Key: `filter-manager/server-filters-${serverId}.json`, }; try { @@ -771,7 +771,7 @@ app.post('/api/server-filters/:serverId', async (req, res) => { const params = { Bucket: BUCKET_NAME, - Key: `server-filters-${serverId}.json`, + Key: `filter-manager/server-filters-${serverId}.json`, Body: JSON.stringify(filters, null, 2), // Pretty print JSON ContentType: 'application/json', }; @@ -791,7 +791,7 @@ app.post('/api/server-filters/:serverId', async (req, res) => { app.get('/api/simple-filters', async (req, res) => { const params = { Bucket: BUCKET_NAME, - Key: 'simple-filters.json', + Key: 'filter-manager/simple-filters.json', }; try { @@ -839,7 +839,7 @@ app.post('/api/simple-filters', async (req, res) => { const params = { Bucket: BUCKET_NAME, - Key: 'simple-filters.json', + Key: 'filter-manager/simple-filters.json', Body: JSON.stringify(filters, null, 2), // Pretty print JSON ContentType: 'application/json', };