Skip to content

Commit

Permalink
Changes url variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed Nov 17, 2019
1 parent 8d49809 commit 7f553fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/legacy/core_plugins/kibana/public/home/load_tutorials.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import _ from 'lodash';
import { getServices } from './kibana_services';
import { i18n } from '@kbn/i18n';

const baseUrl = getServices().addBasePath('/api/kibana/home/tutorials_LP');
const baseUrlNP = getServices().addBasePath('/api/kibana/home/tutorials');
const baseUrlLP = getServices().addBasePath('/api/kibana/home/tutorials_LP');
const baseUrl = getServices().addBasePath('/api/kibana/home/tutorials');
const headers = new Headers();
headers.append('Accept', 'application/json');
headers.append('Content-Type', 'application/json');
Expand All @@ -35,7 +35,7 @@ let tutorialsLoaded = false;

async function loadTutorials() {
try {
const responseLegacyPlatform = await fetch(baseUrl, {
const responseLegacyPlatform = await fetch(baseUrlLP, {
method: 'get',
credentials: 'include',
headers: headers,
Expand All @@ -45,7 +45,7 @@ async function loadTutorials() {
defaultMessage: 'Request failed with status code: {status}', values: { status: responseLegacyPlatform.status } }
));
}
const responseNewPlatform = await fetch(baseUrlNP, {
const responseNewPlatform = await fetch(baseUrl, {
method: 'get',
credentials: 'include',
headers: headers,
Expand Down

0 comments on commit 7f553fb

Please sign in to comment.