From 3226d50747045b7e864479c91d03bd15eb2ead86 Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 9 Feb 2021 12:40:14 -0600 Subject: [PATCH] Rename papi to pluginApi --- src/node/routes/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/node/routes/index.ts b/src/node/routes/index.ts index 21918b38..f91c7576 100644 --- a/src/node/routes/index.ts +++ b/src/node/routes/index.ts @@ -115,9 +115,9 @@ export const register = async ( }) const workingDir = args._ && args._.length > 0 ? path.resolve(args._[args._.length - 1]) : undefined - const papi = new PluginAPI(logger, process.env.CS_PLUGIN, process.env.CS_PLUGIN_PATH, workingDir) - await papi.loadPlugins() - papi.mount(app, wsApp) + const pluginApi = new PluginAPI(logger, process.env.CS_PLUGIN, process.env.CS_PLUGIN_PATH, workingDir) + await pluginApi.loadPlugins() + pluginApi.mount(app, wsApp) app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: true })) @@ -141,8 +141,8 @@ export const register = async ( app.use("/static", _static.router) app.use("/update", update.router) - app.use("/api/applications", apps.router(papi)) - wrapper.onDispose(() => papi.dispose()) + app.use("/api/applications", apps.router(pluginApi)) + wrapper.onDispose(() => pluginApi.dispose()) app.use(() => { throw new HttpError("Not Found", HttpCode.NotFound)