@indiekit/endpoint-media v1.0.0-beta.16
@indiekit/endpoint-media
Micropub media endpoint for Indiekit. Enables publishing media files (audio, photos, videos) to your website using the Micropub protocol.
Installation
npm i @indiekit/endpoint-media
Usage
Add @indiekit/endpoint-media
to your list of plug-ins, specifying options as required:
{
"plugins": ["@indiekit/endpoint-media"],
"@indiekit/endpoint-media": {
"imageProcessing": {
"resize": {
"width": 320,
"height": 320,
},
},
"mountPath": "/medien", // de-DE
},
}
Options
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 . |
Supported endpoint queries
Previously published media:
/media?q=source
Supports
filter
,limit
andoffset
and parameters. For example,/media?q=source&filter=web&limit=10&offset=10
.
14 days ago
14 days ago
18 days ago
24 days ago
25 days ago
2 months ago
10 months ago
9 months ago
6 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago