Skip to content

Commit

Permalink
plugin-ext: remove /plugin/:path(*) endpoint
Browse files Browse the repository at this point in the history
It looks like this endpoint is no longer used.

Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
  • Loading branch information
paul-marechal committed Dec 14, 2020
1 parent cb1eaca commit 5ed2c70
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/plugin-ext/src/main/node/plugin-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import { environment } from '@theia/application-package/lib/environment';
import { WsRequestValidatorContribution } from '@theia/core/lib/node/ws-request-validators';
import { MaybePromise } from '@theia/core/lib/common';

const pluginPath = (process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE) + './theia/plugins/';

@injectable()
export class PluginApiContribution implements BackendApplicationContribution, WsRequestValidatorContribution {

Expand All @@ -41,10 +39,6 @@ export class PluginApiContribution implements BackendApplicationContribution, Ws
}

configure(app: express.Application): void {
app.get('/plugin/:path(*)', (req, res) => {
const filePath: string = req.params.path;
res.sendFile(pluginPath + filePath);
});
const webviewApp = express();
webviewApp.use('/webview', express.static(path.join(__dirname, '../../../src/main/browser/webview/pre')));
app.use(vhost(this.webviewExternalEndpointRegExp, webviewApp));
Expand Down

0 comments on commit 5ed2c70

Please sign in to comment.