fixing license endpoint paths for proxy (#22133)

This commit is contained in:
Bill McConaghy 2018-08-17 12:41:50 -04:00 committed by GitHub
parent b7bac987db
commit f20b9b9efb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ export async function canStartTrial(req) {
const { callWithRequest } = req.server.plugins.elasticsearch.getCluster('admin');
const options = {
method: 'GET',
path: '_xpack/license/trial_status'
path: '/_xpack/license/trial_status'
};
try {
const response = await callWithRequest(req, 'transport.request', options);
@ -22,7 +22,7 @@ export async function startTrial(req, xpackInfo) {
const { callWithRequest } = req.server.plugins.elasticsearch.getCluster('admin');
const options = {
method: 'POST',
path: '_xpack/license/start_trial?acknowledge=true'
path: '/_xpack/license/start_trial?acknowledge=true'
};
try {
/*eslint camelcase: 0*/