blitz_api/main.py
Stefan Stammberger 9046195d02
initial commit
2021-06-10 21:13:26 +02:00

18 lines
322 B
Python

from fastapi import FastAPI
from app.routers import system
# start server with "uvicorn main:app --reload"
app = FastAPI()
app.include_router(system.router)
# @app - path operation decorator
# .get - path operation
# '/' - the path
@app.get('/')
def index():
# path operation function
return {'data': '123'}