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', };