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 (
115
115
} )
116
116
117
117
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 )
121
121
122
122
app . use ( bodyParser . json ( ) )
123
123
app . use ( bodyParser . urlencoded ( { extended : true } ) )
@@ -141,8 +141,8 @@ export const register = async (
141
141
app . use ( "/static" , _static . router )
142
142
app . use ( "/update" , update . router )
143
143
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 ( ) )
146
146
147
147
app . use ( ( ) => {
148
148
throw new HttpError ( "Not Found" , HttpCode . NotFound )
You can’t perform that action at this time.
0 commit comments