mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
157 B
TypeScript
9 lines
157 B
TypeScript
import Koa = require("koa");
|
|
import auth = require("koa-basic-auth");
|
|
|
|
const app = new Koa();
|
|
|
|
app.use(auth({name: "test", pass: "test"}));
|
|
|
|
app.listen(80);
|