Skip to content

Commit

Permalink
refactor: Move cURL converter to frontend (#11432)
Browse files Browse the repository at this point in the history
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <[email protected]>
  • Loading branch information
cstuncsik and netroy authored Feb 7, 2025
1 parent 94789e0 commit 8b28d6c
Show file tree
Hide file tree
Showing 17 changed files with 2,499 additions and 1,232 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"@types/[email protected]": "patches/@[email protected]",
Expand Down
1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
"convict": "6.2.4",
"cookie-parser": "1.4.7",
"csrf": "3.1.0",
"curlconverter": "3.21.0",
"dotenv": "8.6.0",
"express": "4.21.1",
"express-async-errors": "3.1.1",
Expand Down
52 changes: 0 additions & 52 deletions packages/cli/src/controllers/__tests__/curl.controller.test.ts

This file was deleted.

20 changes: 0 additions & 20 deletions packages/cli/src/controllers/curl.controller.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/cli/src/curlconverter.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/cli/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import '@/controllers/active-workflows.controller';
import '@/controllers/annotation-tags.controller.ee';
import '@/controllers/auth.controller';
import '@/controllers/binary-data.controller';
import '@/controllers/curl.controller';
import '@/controllers/ai.controller';
import '@/controllers/dynamic-node-parameters.controller';
import '@/controllers/invitation.controller';
Expand Down Expand Up @@ -392,6 +391,7 @@ export class Server extends AbstractServer {
method === 'GET' &&
accept &&
(accept.includes('text/html') || accept.includes('*/*')) &&
!req.path.endsWith('.wasm') &&
!nonUIRoutesRegex.test(req.path)
) {
res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate');
Expand Down
Loading

0 comments on commit 8b28d6c

Please sign in to comment.