Micropub media endpoint for Indiekit. Enables publishing media files (audio, photos, videos) to your website using the Micropub protocol.
npm install @indiekit/endpoint-media
[!NOTE] This package is installed alongside
@indiekit/indiekit
To customise the behaviour of this plug-in, add @indiekit/endpoint-media
to your configuration, specifying options as required:
Option | Type | Description |
---|---|---|
imageProcessing |
object |
Image processing options. Only supports resizing for now. |
imageProcessing.resize |
object |
Sharp image resizing options. |
mountPath |
string |
Path to listen to media upload requests. Optional, defaults to /media . |
-
Previously published media:
/media?q=source
Supports
filter
,limit
andoffset
and parameters. For example,/media?q=source&filter=web&limit=10&offset=10
.