decorator in FAST API (Python)
@app.get("/auth")
def authenticating():
return {"isLoggedIn": "saeed here"}
@app.get("/auth")?
This is called a decorator in Python.
A decorator is something that:
Takes a function and modifies or registers it in some way.
@app.get("/auth") means:
...
fast-api-blog.hashnode.dev1 min read