Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send SVG object as API response instead of SVG image file #14

Open
wweverma1 opened this issue May 15, 2022 · 0 comments
Open

Send SVG object as API response instead of SVG image file #14

wweverma1 opened this issue May 15, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@wweverma1
Copy link
Owner

The endpoint /stats?username=xxxx&theme=x currently sends response.svg (the SVG file which is saved in the root directory after rendering the SVG object created using SVGwrite library) as a response.
This approach is inefficient.
I suggest sending the SVG object as a response to the endpoint instead of saving a SVG file.

@wweverma1 wweverma1 added enhancement New feature or request help wanted Extra attention is needed labels May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant