File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments