[ create a new paste ] login | about

Link: http://codepad.org/GJAEOmmI    [ raw code | output | fork ]

Python, pasted on Jun 23:
1
2
3
4
5
6
7
8
from fastapi import FastAPI

app = FastAPI()


@app.get("/")
async def root():
    return {"message": "Hello World"}


Output:
1
2
3
4
  Line 7
    async def root():
        ^
SyntaxError: invalid syntax


Create a new paste based on this one


Comments: