Add file type to API route
I am trying to create an API route that generates custom meta images. I have successfully done this. But I am unable to add the
.png file extension for the path. How can I create an API route like '/api/images/meta/$id.png'?