Skip to content

Commit

Permalink
Made location of Cedar backend dynamic (based on current host)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvsoest committed May 20, 2022
1 parent f691e67 commit 140b98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions management_webpage/cedar_embeddable_editor/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export class AppComponent {
//templateDownloadParamName: '9ff482bacac84c499655ab58efdf590a',

showDataSaver: true,
dataSaverEndpointUrl: 'http://localhost:5000/api/cedar/store',
dataSaverEndpointUrl: window.location.protocol + "//" + window.location.host + "/api/cedar/store",

sampleTemplateLocationPrefix: 'http://localhost:5000/api',
sampleTemplateLocationPrefix: window.location.protocol + "//" + window.location.host + "/api",
// sampleTemplateLocationPrefix: 'https://component.staging.metadatacenter.org/cedar-embeddable-editor-sample-templates/',
loadSampleTemplateName: 'cedar', //folder where template.json should be stored
showSampleTemplateLinks: false, //shows template selection box
Expand Down

0 comments on commit 140b98b

Please sign in to comment.