c24174e
5ddc821
0238f04
3206bae
c24174e
|
|
import Koa from "koa";
const app = new Koa();
app.use((ctx) => {
console.log(ctx.request.url, ctx.request.method);
ctx.status = 307;
ctx.set("location", `http://localhost:24242${ctx.request.path}`);
});
app.listen(7860);
|