mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 11:23:10 +02:00
# Description of Changes Previously, the dropdown menu in the pipeline configuration displayed all endpoints, including disabled ones, and allowed API calls to them. Changes: - Updated EndpointInterceptor to correctly parse request URIs and match them to corresponding endpoint names in settings.yml, ensuring disabled endpoints are blocked. - Added a new API endpoint in SettingsController to expose the endpointStatus map, allowing the frontend to check which endpoints are disabled. - Updated pipeline.js to use this new API and hide disabled endpoints from the dropdown menu. Tests: - Created a new Docker Compose setup using a custom settings.yml where all endpoints are disabled. - Implemented a test script to run this setup, send API requests to disabled endpoints, and verify they are correctly blocked. [Bug Fix Video](https://youtu.be/L1z3jZh8z8E) Closes #2881 --- ## Checklist ### General - [x] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [x] I have read the [Stirling-PDF Developer Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md) (if applicable) - [ ] I have read the [How to add new languages to Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md) (if applicable) - [x] I have performed a self-review of my own code - [x] My changes generate no new warnings ### Documentation - [ ] I have updated relevant docs on [Stirling-PDF's doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) (if functionality has heavily changed) - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) ### UI Changes (if applicable) - [ ] Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR) ### Testing (if applicable) - [x] I have tested my changes locally. Refer to the [Testing Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing) for more details. --------- Co-authored-by: Anthony Stirling <[email protected]>
This commit is contained in:
co-authored by
Anthony Stirling
parent
4e63a684b5
commit
7f8e3d676d
@@ -0,0 +1,60 @@
|
||||
/api/v1/filter/filter-page-size
|
||||
/api/v1/filter/filter-page-rotation
|
||||
/api/v1/filter/filter-page-count
|
||||
/api/v1/filter/filter-file-size
|
||||
/api/v1/filter/filter-contains-text
|
||||
/api/v1/filter/filter-contains-image
|
||||
/api/v1/security/validate-signature
|
||||
/api/v1/security/sanitize-pdf
|
||||
/api/v1/security/remove-password
|
||||
/api/v1/security/remove-cert-sign
|
||||
/api/v1/security/redact
|
||||
/api/v1/security/get-info-on-pdf
|
||||
/api/v1/security/cert-sign
|
||||
/api/v1/security/auto-redact
|
||||
/api/v1/security/add-watermark
|
||||
/api/v1/security/add-password
|
||||
/api/v1/misc/update-metadata
|
||||
/api/v1/misc/show-javascript
|
||||
/api/v1/misc/replace-invert-pdf
|
||||
/api/v1/misc/repair
|
||||
/api/v1/misc/remove-blanks
|
||||
/api/v1/misc/ocr-pdf
|
||||
/api/v1/misc/flatten
|
||||
/api/v1/misc/extract-images
|
||||
/api/v1/misc/extract-image-scans
|
||||
/api/v1/misc/decompress-pdf
|
||||
/api/v1/misc/compress-pdf
|
||||
/api/v1/misc/auto-split-pdf
|
||||
/api/v1/misc/auto-rename
|
||||
/api/v1/misc/add-stamp
|
||||
/api/v1/misc/add-page-numbers
|
||||
/api/v1/misc/add-image
|
||||
/api/v1/convert/url/pdf
|
||||
/api/v1/convert/pdf/xml
|
||||
/api/v1/convert/pdf/word
|
||||
/api/v1/convert/pdf/text
|
||||
/api/v1/convert/pdf/presentation
|
||||
/api/v1/convert/pdf/pdfa
|
||||
/api/v1/convert/pdf/markdown
|
||||
/api/v1/convert/pdf/img
|
||||
/api/v1/convert/pdf/html
|
||||
/api/v1/convert/pdf/csv
|
||||
/api/v1/convert/markdown/pdf
|
||||
/api/v1/convert/img/pdf
|
||||
/api/v1/convert/html/pdf
|
||||
/api/v1/convert/file/pdf
|
||||
/api/v1/general/split-pdf-by-sections
|
||||
/api/v1/general/split-pdf-by-chapters
|
||||
/api/v1/general/split-pages
|
||||
/api/v1/general/split-by-size-or-count
|
||||
/api/v1/general/scale-pages
|
||||
/api/v1/general/rotate-pdf
|
||||
/api/v1/general/remove-pages
|
||||
/api/v1/general/remove-image-pdf
|
||||
/api/v1/general/rearrange-pages
|
||||
/api/v1/general/pdf-to-single-page
|
||||
/api/v1/general/overlay-pdfs
|
||||
/api/v1/general/multi-page-layout
|
||||
/api/v1/general/merge-pdfs
|
||||
/api/v1/general/crop
|
||||
Reference in New Issue
Block a user