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 c798b33

Browse files
update demo html
1 parent d222781 commit c798b33

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

‎functions/app/index.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,31 @@ export default function expressApp(functionName) {
2020

2121
/* define routes */
2222
router.get('/', (req, res) => {
23-
console.log('home route hit')
2423
const html = `
2524
<html>
2625
<head>
2726
</head>
2827
<body>
29-
<h1>
30-
⊂◉‿◉つ I'm using Express in a lambda via '${functionName}'
31-
</h1>
28+
<h1>Express via '${functionName}' ⊂◉‿◉つ</h1>
3229
33-
<a href='/.netlify/functions/${functionName}/users'>View users</a>
34-
<br/>
30+
<p>I'm using Express running via a Netlify Function. Choose a route:</p>
31+
32+
<div>
33+
<a href='/.netlify/functions/${functionName}/users'>View /users route</a>
34+
</div>
3535
36-
<a href='/'>Back home</a>
36+
<div>
37+
<div>
38+
<a href='/.netlify/functions/${functionName}/hello'>View /hello route</a>
39+
</div>
40+
</div>
3741
42+
<br/>
43+
<br/>
44+
<br/>
45+
<a href='/'>
46+
Go back to demo homepage
47+
</a>
3848
</body>
3949
</html>
4050
`

0 commit comments

Comments
(0)

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