Skip to content

Commit

Permalink
Fix route dependencies plugins import
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Mar 17, 2020
1 parent 29e2c45 commit 70b6eaa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/license_management/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class LicenseManagementServerPlugin implements Plugin<void, void, any, an

this.apiRoutes.setup({
router,
pluggins: {
plugins: {
licensing,
},
lib: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { putLicense } from '../../../lib/license';
import { RouteDependencies } from '../../../types';
import { addBasePath } from '../../helpers';

export function registerLicenseRoute({ router, pluggins: { licensing } }: RouteDependencies) {
export function registerLicenseRoute({ router, plugins: { licensing } }: RouteDependencies) {
router.put(
{
path: addBasePath('/'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { startBasic } from '../../../lib/start_basic';
import { RouteDependencies } from '../../../types';
import { addBasePath } from '../../helpers';

export function registerStartBasicRoute({ router, pluggins: { licensing } }: RouteDependencies) {
export function registerStartBasicRoute({ router, plugins: { licensing } }: RouteDependencies) {
router.post(
{
path: addBasePath('/start_basic'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { canStartTrial, startTrial } from '../../../lib/start_trial';
import { RouteDependencies } from '../../../types';
import { addBasePath } from '../../helpers';

export function registerStartTrialRoutes({ router, pluggins: { licensing } }: RouteDependencies) {
export function registerStartTrialRoutes({ router, plugins: { licensing } }: RouteDependencies) {
router.get({ path: addBasePath('/start_trial'), validate: false }, async (ctx, req, res) => {
const { callAsCurrentUser } = ctx.core.elasticsearch.adminClient;
try {
Expand Down

0 comments on commit 70b6eaa

Please sign in to comment.