From 4083bb5f55dc9a901d6383b71424193c19f5866a Mon Sep 17 00:00:00 2001 From: Sajad Rahimi <75030204+SajadRahimi1@users.noreply.github.com> Date: Tue, 21 Dec 2021 06:32:50 +0330 Subject: [PATCH] Add FastAPI (#1186) Co-authored-by: Richie Bendall --- f/FastAPI.py | 7 +++++++ readme.md | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 f/FastAPI.py diff --git a/f/FastAPI.py b/f/FastAPI.py new file mode 100644 index 00000000..9916c038 --- /dev/null +++ b/f/FastAPI.py @@ -0,0 +1,7 @@ +from fastapi import Body, FastAPI + +app = FastAPI() + +@app.get("/") +async def root(): + return {"message": "Hello World"} diff --git a/readme.md b/readme.md index 78a39039..6dcc33fb 100644 --- a/readme.md +++ b/readme.md @@ -8,7 +8,7 @@ Thanks to everyone who continues to contribute; new languages are created every Make sure to see [contributing.md](/contributing.md) for instructions on contributing to the project! -## Languages (843 total) +## Languages (844 total) * [!@#$%^&*()_+](%23/%21%40%23%24%25%5E%26%E2%88%97%28%29_%2B) * [():;#?!](%23/%28%29%CB%B8%3B%23%EF%BC%9F%21) @@ -355,6 +355,7 @@ Make sure to see [contributing.md](/contributing.md) for instructions on contrib * [False](f/False.f) * [Fancy](f/Fancy.fy) * [Fantom](f/Fantom.fan) +* [FastAPI](f/FastAPI.py) * [Fennel](f/Fennel.fnl) * [Ferite](f/Ferite.fe) * [Fetlang](f/Fetlang.fet)