Commit 22ac3f3d authored by Anton's avatar Anton

Add api.uriPrefix to config

parent 673a615c
{
"api": {
"uriBase": "API_URI_BASE",
"uriPrefix": "API_URI_PREFIX",
"apiHost": "API_HOST",
"transcoderHost": "API_TRANSCODER_HOST",
"auth0AppMetadataPrefix": "AUTH0_APP_METADATA_PREFIX"
......
{
"api": {
"uriBase": "http://id.motionbank.org",
"uriPrefix": "http://id.motionbank.org/",
"apiHost": "https://api.motionbank.org",
"transcoderHost": "https://transcoder.motionbank.org",
"auth0AppMetadataPrefix": "https://app.motionbank.org/app_metadata/"
......
{
"api": {
"uriBase": "http://id.motionbank.org",
"uriPrefix": "http://id.motionbank.org/",
"apiHost": "http://localhost:3030",
"transcoderHost": "http://localhost:4040",
"auth0AppMetadataPrefix": "https://app.motionbank.org/app_metadata/"
......
......@@ -107,7 +107,7 @@ class Sessions extends TinyEmitter {
results = await _this._annotations.findHandler({
query: {
query: JSON.stringify({
'target.id': `${config.api.uriBase}/piecemaker/timelines/${map._uuid}`
'target.id': `${config.api.uriPrefix}piecemaker/timelines/${map._uuid}`
})
},
user: req.user,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment