Skip to content

Commit f616e24

Browse files
Marie HoegerMarie Hoeger
authored andcommitted
change name of render method
1 parent b6db45b commit f616e24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

HelloPanda/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ const run: AzureFunction = async function (context: Context, req: HttpRequest):
1515
headers: {
1616
"content-type": "text/html"
1717
},
18-
body: formatContent(url, fact)
18+
body: renderBody(url, fact)
1919
}
2020
};
2121

22-
function formatContent(url: string, fact: string) {
22+
function renderBody(url: string, fact: string) {
2323
return `<center>
2424
<img height="80%" src="${url}"/>
2525
<h3>${fact}</h3>

0 commit comments

Comments
 (0)