mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
10 lines
189 B
TypeScript
10 lines
189 B
TypeScript
import Koa = require('koa');
|
|
import proxy = require('koa-proxy');
|
|
|
|
const app = new Koa();
|
|
app.use(proxy({
|
|
host: 'https://api.github.com',
|
|
match: /^\/repos\//
|
|
}));
|
|
app.listen(3000);
|