Closed vipickering closed 5 years ago
Build a non-auth endpoint that accepts an image in the correct format and POSTs to Github API correctly.
Make it work from a Micropub site
Add Auth and verify it still works.
The Media Endpoint processes the file upload, storing it in whatever backend it wishes, and generates a URL to the file. The URL should be unguessable, such as using a UUID in the path. If the request is successful, the endpoint must return the URL to the file that was created in the HTTP Location header, and respond with HTTP 201 Created. The response body is left undefined.
done
Support uploading images by using Multer and creating a media endpoint.
https://www.w3.org/TR/micropub/#media-endpoint