mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-20 12:57:23 +02:00
18 lines
322 B
Python
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'}
|