elrumordelaluz / svgsprit.es

Public endpoint to generate SVG Sprites using svg-spreact
https://svgsprit.es
167 stars 21 forks source link

Public endpoint doesn't work #53

Closed kyleshepherd closed 1 year ago

kyleshepherd commented 1 year ago

I'm trying to test the public endpoint using Postman and it's only returning the HTML of the https://svgsprit.es/api page.

I'm setting the body as a raw object with the following values:

{
    "input": [
        "<svg xmlns="http://www.w3.org/2000/svg" height="48" width="48" fill="currentColor"><path d="M8 42V18L24 6l16 12v24H28V28h-8v14Z"/></svg>",
    ] 
}

Any help is greatly appreciated!

kyleshepherd commented 1 year ago

nvm hadn't set headers 🤦🏻