Commit graph

5 commits

Author SHA1 Message Date
7df5eafe5b
fix(proxy): correct URL reference in proxy function
Switched the variable from `url` to `jsdelivr_url` in the proxy function to ensure it references the correct URL. This corrects an oversight that could have resulted in incorrect data being fetched or an error due to an invalid URL. No other functionality is affected.
2024-08-03 16:39:17 +02:00
69e3a5a25d
feat: add streaming and error handling to proxy route
Introduced streaming support in the proxy route to handle large data transfers more efficiently without loading everything into memory at once. Added error handling for HTTP errors and content-type detection failures to provide more robust and user-friendly responses. Updated import statements to reflect new dependencies.
2024-08-03 16:32:44 +02:00
8076dcd937
feat(proxy): return content instead of redirecting
Updated the proxy route to fetch and return the content from
jsdelivr instead of just redirecting to the URL. This change
allows the application to handle and manipulate the content
before sending it to the client, which provides more control
over the data flow.
2024-08-03 16:26:34 +02:00
e6373d0535
feat: redesign layout with hero section and footer
Added a hero section for better user engagement and moved informational content into a clearer main section. The footer with a credit link enhances credibility. Extra styling improves readability with a structured presentation. Updated bootstrap resource links for consistency.
2024-08-03 11:15:36 +02:00
c4054c1374
feat: add Flask proxy app for cdn.jsdelivr.net
Introduce a simple Flask app that proxies requests to cdn.jsdelivr.net.
Includes basic routing for home and proxy endpoints, and a template
render for the home page explaining usage. Added Flask to
requirements.txt and updated .gitignore to exclude venv and __pycache__.
2024-08-03 08:40:59 +02:00