created project
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
# Создаем само приложение
|
||||
app = FastAPI()
|
||||
|
||||
# Вешаем обработчик на главную страницу
|
||||
@app.get("/")
|
||||
def read_root():
|
||||
return {"message": "Hello, world!"}
|
||||
Reference in New Issue
Block a user