ryan-kraay / stremio-addon-devkit

A database driven framework to rapidly build Stremio Addons, written in Crystal Lang.
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Add custom path-prefix support for user-data / configuration #24

Open ryan-kraay opened 1 year ago

ryan-kraay commented 1 year ago

The manifest can allow the user to define various parameters.

Details are at: https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/manifest.md#user-data

ryan-kraay commented 10 months ago

This would probably be best handled by introducing an optional path parameter to the ManifestHandler https://github.com/ryan-kraay/stremio-addon-devkit/blob/1f6e7951df7e4c518abb417776dc0c6bb09d9821/src/stremio-addon-devkit/api/manifest_handler.cr#L57

We could encourage the use of the Radix syntax for extracting parameters (ie: /foo/:userdata).