Send SVG object as API response instead of SVG image file
Opened this issue · 0 comments
wweverma1 commented
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.