refactor: Update server configuration and filter API endpoints to use a new directory structure for improved organization
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 6m2s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 6m2s
This commit is contained in:
+7
-7
@@ -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',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user