Commit
·
5ddc821
1
Parent(s):
ae53db5
Update server.ts
Browse files
server.ts
CHANGED
|
@@ -3,6 +3,7 @@ import Koa from "koa";
|
|
| 3 |
const app = new Koa();
|
| 4 |
|
| 5 |
app.use((ctx) => {
|
|
|
|
| 6 |
ctx.body = {
|
| 7 |
fullUrl: ctx.request.url,
|
| 8 |
query: ctx.request.query,
|
|
|
|
| 3 |
const app = new Koa();
|
| 4 |
|
| 5 |
app.use((ctx) => {
|
| 6 |
+
console.log(ctx.request.url, ctx.request.method);
|
| 7 |
ctx.body = {
|
| 8 |
fullUrl: ctx.request.url,
|
| 9 |
query: ctx.request.query,
|