Skip to content

Commit 28bc1c1

Browse files
committed
Rename papi to pluginApi
1 parent e7167db commit 28bc1c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/node/routes/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ export const register = async (
115115
})
116116

117117
const workingDir = args._ && args._.length > 0 ? path.resolve(args._[args._.length - 1]) : undefined
118-
const papi = new PluginAPI(logger, process.env.CS_PLUGIN, process.env.CS_PLUGIN_PATH, workingDir)
119-
await papi.loadPlugins()
120-
papi.mount(app, wsApp)
118+
const pluginApi = new PluginAPI(logger, process.env.CS_PLUGIN, process.env.CS_PLUGIN_PATH, workingDir)
119+
await pluginApi.loadPlugins()
120+
pluginApi.mount(app, wsApp)
121121

122122
app.use(bodyParser.json())
123123
app.use(bodyParser.urlencoded({ extended: true }))
@@ -141,8 +141,8 @@ export const register = async (
141141
app.use("/static", _static.router)
142142
app.use("/update", update.router)
143143

144-
app.use("/api/applications", apps.router(papi))
145-
wrapper.onDispose(() => papi.dispose())
144+
app.use("/api/applications", apps.router(pluginApi))
145+
wrapper.onDispose(() => pluginApi.dispose())
146146

147147
app.use(() => {
148148
throw new HttpError("Not Found", HttpCode.NotFound)

0 commit comments

Comments
 (0)