We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7de3b7e commit e5bfbf4Copy full SHA for e5bfbf4
03-fastapi/src/worker.py
@@ -7,6 +7,7 @@
7
8
app = FastAPI()
9
10
+
11
@app.get("/")
12
async def root():
13
message = "This is an example of FastAPI with Jinja2 - go to /hi/<name> to see a template rendered"
@@ -25,6 +26,7 @@ async def env(req: Request):
25
26
message = f"Here is an example of getting an environment variable: {env.MESSAGE}"
27
return {"message": message}
28
29
30
class Default(WorkerEntrypoint):
31
async def fetch(self, request):
32
import asgi
0 commit comments