yetanalytics / lrs

Protocols, specifications, and logic for building an xAPI Learning Record Store (LRS) in Clojure(Script).
https://www.yetanalytics.com/lrs
Apache License 2.0
4 stars 1 forks source link

LRS-35 remove hardcoded path prefix #31

Closed milt closed 3 years ago

milt commented 3 years ago

LRS-35 The LRS should not require implementers to use the /xapi path prefix, as this is not part of the spec.

This PR allows the prefix to be customized (as a path from root with no trailing slash), and sets the default to /xapi so as not to break existing stuff.

The memory implementation is updated to account for the change in the processing of the more link

Note: since we don't want to be restrictive about config/environment it is up to the implementer to supply this option when constructing the LRS in:

I think we should eventually default it to the empty string when dependent projects are migrated to set it explicitly.