Commit 805ea19c by twb

Update app.js

parent e211806e
Pipeline #91 failed with stages
in 12 seconds
...@@ -13,7 +13,7 @@ app.use(async (ctx, next) => { ...@@ -13,7 +13,7 @@ app.use(async (ctx, next) => {
app.use(async (ctx, next) => { app.use(async (ctx, next) => {
var name = ctx.request.query.name || 'world'; var name = ctx.request.query.name || 'world';
ctx.response.type = 'text/html'; ctx.response.type = 'text/html';
ctx.response.body = `<h1>Hello, ${name}!</h1>`; ctx.response.body = `<h1>, ${name}!</h1>`;
}); });
module.exports = app; module.exports = app;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment