Skip to content

Commit 0372e86

Browse files
authored
Adds submodule to python hello world template (#10991)
1 parent 2f57345 commit 0372e86

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.changeset/bitter-dingos-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-cloudflare": minor
3+
---
4+
5+
Adds submodule to Python hello world template
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from workers import Response, WorkerEntrypoint
2-
2+
from submodule import get_hello_message
33
class Default(WorkerEntrypoint):
44
async def fetch(self, request):
5-
return Response("Hello World!")
5+
return Response(get_hello_message())
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def get_hello_message():
2+
return "Hello World!"

0 commit comments

Comments
 (0)