Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 66b8f68

Browse files
update content
1 parent c798b33 commit 66b8f68

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

‎functions/app/index.js

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,44 @@ export default function expressApp(functionName) {
2323
const html = `
2424
<html>
2525
<head>
26+
<style>
27+
body {
28+
padding: 30px;
29+
}
30+
</style>
2631
</head>
2732
<body>
2833
<h1>Express via '${functionName}' ⊂◉‿◉つ</h1>
2934
30-
<p>I'm using Express running via a Netlify Function. Choose a route:</p>
35+
<p>I'm using Express running via a <a href='https://www.netlify.com/docs/functions/' target='_blank'>Netlify Function</a>.</p>
36+
37+
<p>Choose a route:</p>
3138
3239
<div>
3340
<a href='/.netlify/functions/${functionName}/users'>View /users route</a>
3441
</div>
3542
3643
<div>
37-
<div>
38-
<a href='/.netlify/functions/${functionName}/hello'>View /hello route</a>
39-
</div>
44+
<a href='/.netlify/functions/${functionName}/hello'>View /hello route</a>
4045
</div>
4146
4247
<br/>
4348
<br/>
49+
50+
<div>
51+
<a href='/'>
52+
Go back to demo homepage
53+
</a>
54+
</div>
55+
4456
<br/>
45-
<a href='/'>
46-
Go back to demo homepage
47-
</a>
57+
<br/>
58+
59+
<div>
60+
<a href='https://github.com/DavidWells/netlify-functions-express' target='_blank'>
61+
See the source code on github
62+
</a>
63+
</div>
4864
</body>
4965
</html>
5066
`

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /