greeting
Express (deprecated)
v2
Fork
1
2
3
4
5
6
7
8
9
// View at https://fallenmax-greeting.express.val.run?name=myName
export
async
function
greeting
(
req
:
express
.
Request
,
res
:
express
.
Response
)
{
const
name
=
String
(
req
.
query
.
name
)
;
const
text
=
`Hello
${
name
}
`
;
return
res
.
send
(
`<div>
<h1>
${
text
}
</h1>
<script>console.log(123)</script>
</div>`
)
;
}
Preview