Glossary: Building APIs with FastAPI
Decorator
Also written: decorators
A line starting with `@` above a function that changes how it is used. `@app.get("/")` registers the function as the handler for GET requests to `/`.
Glossary: Building APIs with FastAPI
Also written: decorators
A line starting with `@` above a function that changes how it is used. `@app.get("/")` registers the function as the handler for GET requests to `/`.