Plug-ins Micropub media

Micropub media endpoint for Indiekit.

Installation#

npm i @indiekit/endpoint-media

Configuration#

const MediaEndpoint = require('@indiekit/endpoint-media');

const mediaEndpoint = new MediaEndpoint({
// config options here
});

Options#

  • mountpath: Path to listen to media upload requests. Optional, defaults to /media.

Supported endpoint queries#

  • Previously published media: /media?q=source

    Supports filter, limit and offset and parameters. For example, /media?q=source&filter=web&limit=10&offset=10.