Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/test/leaks/server.js
3520 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
const Koa = require('koa');
7
const serve = require('koa-static');
8
const mount = require('koa-mount');
9
10
const app = new Koa();
11
12
app.use(serve('.'));
13
app.use(mount('/static', serve('../../out')));
14
15
app.listen(3000);
16
console.log('👉 http://localhost:3000');
17
18