Initial commit - Migrated to Dev environment
This commit is contained in:
65
code-server-config/data/User/History/-5314da0c/54N2.py
Executable file
65
code-server-config/data/User/History/-5314da0c/54N2.py
Executable file
@@ -0,0 +1,65 @@
|
||||
from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
# 1. Konfiguráció importálása
|
||||
from app.core.config import settings
|
||||
|
||||
# 2. Adatbázis importok (JAVÍTVA)
|
||||
# A 'Base' tartalmazza a modellek definícióit (app/db/base.py)
|
||||
from app.db.base import Base
|
||||
# Az 'engine' kezeli a kapcsolatot (app/db/session.py)
|
||||
from app.db.session import engine
|
||||
|
||||
# 3. Router importálása
|
||||
from app.api.v1.router import api_router
|
||||
|
||||
# --- Lifespan (Életciklus) Kezelő ---
|
||||
# Ez fut le az alkalmazás indulásakor és leállásakor
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
# INDÍTÁS (Startup): Táblák létrehozása fejlesztői módban
|
||||
async with engine.begin() as conn:
|
||||
# Fontos: Importálnunk kell a modelleket, hogy a Base tudjon róluk,
|
||||
# mielőtt létrehozzuk a táblákat!
|
||||
# Ha vannak új modelljeid (pl. logistics, user), írd hozzá őket ide:
|
||||
from app.models import social, vehicle, user, logistics
|
||||
|
||||
print("--- Adatbázis táblák ellenőrzése és létrehozása ---")
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
|
||||
yield # Itt fut az alkalmazás...
|
||||
|
||||
# LEÁLLÁS (Shutdown): Erőforrások elengedése
|
||||
print("--- Traffic Ecosystem SuperApp leállítása ---")
|
||||
await engine.dispose()
|
||||
|
||||
# --- Alkalmazás Inicializálása ---
|
||||
app = FastAPI(
|
||||
title=settings.PROJECT_NAME,
|
||||
version=settings.VERSION,
|
||||
openapi_url=f"{settings.API_V1_STR}/openapi.json",
|
||||
lifespan=lifespan
|
||||
)
|
||||
|
||||
# --- Middleware (CORS) ---
|
||||
# Engedélyezzük, hogy a frontend kommunikálhasson az API-val
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"], # FIGYELEM: Élesben ezt szigorítani kell (pl. a frontend domainjére)!
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
# --- Routerek csatolása ---
|
||||
app.include_router(api_router, prefix=settings.API_V1_STR)
|
||||
|
||||
# --- Gyökér végpont ---
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {
|
||||
"message": "Traffic Ecosystem SuperApp API fut",
|
||||
"version": settings.VERSION,
|
||||
"docs_url": "/docs" # Segítség a fejlesztőknek
|
||||
}
|
||||
65
code-server-config/data/User/History/-5314da0c/9MWC.py
Executable file
65
code-server-config/data/User/History/-5314da0c/9MWC.py
Executable file
@@ -0,0 +1,65 @@
|
||||
from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
# 1. Konfiguráció importálása
|
||||
from app.core.config import settings
|
||||
|
||||
# 2. Adatbázis importok (JAVÍTVA)
|
||||
# A 'Base' tartalmazza a modellek definícióit (app/db/base.py)
|
||||
from app.db.base import Base
|
||||
# Az 'engine' kezeli a kapcsolatot (app/db/session.py)
|
||||
from app.db.session import engine
|
||||
|
||||
# 3. Router importálása
|
||||
from app.api.v1.router import api_router
|
||||
|
||||
# --- Lifespan (Életciklus) Kezelő ---
|
||||
# Ez fut le az alkalmazás indulásakor és leállásakor
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
# INDÍTÁS (Startup): Táblák létrehozása fejlesztői módban
|
||||
async with engine.begin() as conn:
|
||||
# Fontos: Importálnunk kell a modelleket, hogy a Base tudjon róluk,
|
||||
# mielőtt létrehozzuk a táblákat!
|
||||
# Ha vannak új modelljeid (pl. logistics, user), írd hozzá őket ide:
|
||||
from app.models import social, vehicle, user
|
||||
|
||||
print("--- Adatbázis táblák ellenőrzése és létrehozása ---")
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
|
||||
yield # Itt fut az alkalmazás...
|
||||
|
||||
# LEÁLLÁS (Shutdown): Erőforrások elengedése
|
||||
print("--- Traffic Ecosystem SuperApp leállítása ---")
|
||||
await engine.dispose()
|
||||
|
||||
# --- Alkalmazás Inicializálása ---
|
||||
app = FastAPI(
|
||||
title=settings.PROJECT_NAME,
|
||||
version=settings.VERSION,
|
||||
openapi_url=f"{settings.API_V1_STR}/openapi.json",
|
||||
lifespan=lifespan
|
||||
)
|
||||
|
||||
# --- Middleware (CORS) ---
|
||||
# Engedélyezzük, hogy a frontend kommunikálhasson az API-val
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"], # FIGYELEM: Élesben ezt szigorítani kell (pl. a frontend domainjére)!
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
# --- Routerek csatolása ---
|
||||
app.include_router(api_router, prefix=settings.API_V1_STR)
|
||||
|
||||
# --- Gyökér végpont ---
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {
|
||||
"message": "Traffic Ecosystem SuperApp API fut",
|
||||
"version": settings.VERSION,
|
||||
"docs_url": "/docs" # Segítség a fejlesztőknek
|
||||
}
|
||||
54
code-server-config/data/User/History/-5314da0c/FkfR.py
Executable file
54
code-server-config/data/User/History/-5314da0c/FkfR.py
Executable file
@@ -0,0 +1,54 @@
|
||||
from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
from app.core.config import settings
|
||||
from app.core.database import engine, Base
|
||||
from app.api.v1.router import api_router
|
||||
|
||||
# --- Lifespan Manager (Startup & Shutdown Logic) ---
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
# STARTUP: Adatbázis táblák létrehozása
|
||||
# Figyelem: Éles környezetben (Production) inkább Alembic migrációt használunk!
|
||||
async with engine.begin() as conn:
|
||||
# Betöltjük a modelleket, hogy a metadata tudjon róluk
|
||||
# Fontos: importálni kell őket, különben nem jönnek létre!
|
||||
from app.models import social, vehicle, user, logistics
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
|
||||
print("--- Database Tables Checked/Created ---")
|
||||
|
||||
yield # Itt fut az alkalmazás...
|
||||
|
||||
# SHUTDOWN: Erőforrások felszabadítása (ha lenne)
|
||||
print("--- Shutting down ---")
|
||||
|
||||
# --- App Initialization ---
|
||||
app = FastAPI(
|
||||
title=settings.PROJECT_NAME,
|
||||
version=settings.VERSION,
|
||||
openapi_url=f"{settings.API_V1_STR}/openapi.json",
|
||||
lifespan=lifespan
|
||||
)
|
||||
|
||||
# --- Middleware (CORS) ---
|
||||
# Engedélyezzük a frontend kommunikációt
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"], # Élesben szigorítani kell!
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
# --- Routers ---
|
||||
app.include_router(api_router, prefix=settings.API_V1_STR)
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {
|
||||
"message": "Traffic Ecosystem SuperApp API is Running",
|
||||
"docs_url": "/docs",
|
||||
"version": settings.VERSION
|
||||
}
|
||||
68
code-server-config/data/User/History/-5314da0c/Fp0w.py
Executable file
68
code-server-config/data/User/History/-5314da0c/Fp0w.py
Executable file
@@ -0,0 +1,68 @@
|
||||
from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
# 1. Config Import
|
||||
from app.core.config import settings
|
||||
|
||||
# 2. Database Imports (FIXED PATHS)
|
||||
# 'Base' contains the model definitions (from app/db/base.py)
|
||||
from app.db.base import Base
|
||||
# 'engine' handles the connection (assumed to be in app/db/session.py)
|
||||
from app.db.session import engine
|
||||
|
||||
# 3. Router Import
|
||||
from app.api.v1.router import api_router
|
||||
|
||||
# --- Lifespan Manager (Startup & Shutdown Logic) ---
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
"""
|
||||
Handles application startup and shutdown events.
|
||||
"""
|
||||
# STARTUP: Create Database Tables (Development Mode)
|
||||
# In production, you should use Alembic migrations instead of this.
|
||||
async with engine.begin() as conn:
|
||||
# We must import models here so that Base.metadata knows about them
|
||||
# before we call create_all.
|
||||
# Ensure these files exist in app/models/
|
||||
from app.models import social, vehicle # Add 'user', 'logistics' if created
|
||||
|
||||
print("--- Checking/Creating Database Tables ---")
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
|
||||
yield # The application runs here
|
||||
|
||||
# SHUTDOWN: Cleanup resources
|
||||
print("--- Shutting down Traffic Ecosystem SuperApp ---")
|
||||
await engine.dispose()
|
||||
|
||||
# --- App Initialization ---
|
||||
app = FastAPI(
|
||||
title=settings.PROJECT_NAME,
|
||||
version=settings.VERSION,
|
||||
openapi_url=f"{settings.API_V1_STR}/openapi.json",
|
||||
lifespan=lifespan
|
||||
)
|
||||
|
||||
# --- Middleware (CORS) ---
|
||||
# Allows the frontend to communicate with this API
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"], # WARNING: Restrict this in production!
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
# --- Routers ---
|
||||
app.include_router(api_router, prefix=settings.API_V1_STR)
|
||||
|
||||
# --- Root Endpoint ---
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {
|
||||
"message": "Traffic Ecosystem SuperApp API is Running",
|
||||
"version": settings.VERSION,
|
||||
"docs_url": "/docs"
|
||||
}
|
||||
100
code-server-config/data/User/History/-5314da0c/MlfW.py
Executable file
100
code-server-config/data/User/History/-5314da0c/MlfW.py
Executable file
@@ -0,0 +1,100 @@
|
||||
from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from fastapi.openapi.utils import get_openapi
|
||||
|
||||
# 1. Konfiguráció importálása
|
||||
from app.core.config import settings
|
||||
|
||||
# 2. Adatbázis importok
|
||||
from app.db.base import Base
|
||||
from app.db.session import engine
|
||||
|
||||
# 3. Router importálása
|
||||
from app.api.v1.router import api_router
|
||||
|
||||
# --- Lifespan (Életciklus) Kezelő ---
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
# INDÍTÁS (Startup): Táblák létrehozása fejlesztői módban
|
||||
async with engine.begin() as conn:
|
||||
# Importáljuk a modelleket, hogy a Base tudjon róluk!
|
||||
from app.models import social, vehicle, user, logistics, expense
|
||||
|
||||
print("--- Adatbázis táblák ellenőrzése és létrehozása ---")
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
|
||||
yield # Itt fut az alkalmazás...
|
||||
|
||||
# LEÁLLÁS (Shutdown): Erőforrások elengedése
|
||||
print("--- Traffic Ecosystem SuperApp leállítása ---")
|
||||
await engine.dispose()
|
||||
|
||||
# --- Alkalmazás Inicializálása ---
|
||||
app = FastAPI(
|
||||
title=settings.PROJECT_NAME,
|
||||
version=settings.VERSION,
|
||||
openapi_url=f"{settings.API_V1_STR}/openapi.json",
|
||||
lifespan=lifespan,
|
||||
# Ez a beállítás segít, hogy a lakat megmaradjon frissítés után is
|
||||
swagger_ui_parameters={"persistAuthorization": True}
|
||||
)
|
||||
|
||||
# --- OpenAPI Biztonsági Séma (Hogy legyen Authorize gomb!) ---
|
||||
def custom_openapi():
|
||||
if app.openapi_schema:
|
||||
return app.openapi_schema
|
||||
|
||||
openapi_schema = get_openapi(
|
||||
title=app.title,
|
||||
version=app.version,
|
||||
description="API dokumentáció JWT hitelesítéssel",
|
||||
routes=app.routes,
|
||||
)
|
||||
|
||||
# Itt definiáljuk a lakatot és a JWT formátumot
|
||||
openapi_schema["components"]["securitySchemes"] = {
|
||||
"OAuth2PasswordBearer": {
|
||||
"type": "oauth2",
|
||||
"flows": {
|
||||
"password": {
|
||||
"tokenUrl": "/api/v1/auth/login"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Globálisan alkalmazzuk minden védett végpontra
|
||||
for path in openapi_schema["paths"]:
|
||||
for method in openapi_schema["paths"][path]:
|
||||
# Csak azokra a kérésekre rakunk lakatot, amik nincsenek a kivételek között
|
||||
# (Az auth/login és auth/register maradjon nyitva)
|
||||
if not any(x in path for x in ["/auth/login", "/auth/register"]):
|
||||
openapi_schema["paths"][path][method]["security"] = [{"OAuth2PasswordBearer": []}]
|
||||
|
||||
app.openapi_schema = openapi_schema
|
||||
return app.openapi_schema
|
||||
|
||||
# Felülírjuk az alapértelmezett OpenAPI generátort a sajátunkkal
|
||||
app.openapi = custom_openapi
|
||||
|
||||
# --- Middleware (CORS) ---
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"],
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
# --- Routerek csatolása ---
|
||||
app.include_router(api_router, prefix=settings.API_V1_STR)
|
||||
|
||||
# --- Gyökér végpont ---
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {
|
||||
"message": "Traffic Ecosystem SuperApp API fut",
|
||||
"version": settings.VERSION,
|
||||
"docs_url": "/docs"
|
||||
}
|
||||
100
code-server-config/data/User/History/-5314da0c/eSN2.py
Executable file
100
code-server-config/data/User/History/-5314da0c/eSN2.py
Executable file
@@ -0,0 +1,100 @@
|
||||
from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from fastapi.openapi.utils import get_openapi
|
||||
|
||||
# 1. Konfiguráció importálása
|
||||
from app.core.config import settings
|
||||
|
||||
# 2. Adatbázis importok
|
||||
from app.db.base import Base
|
||||
from app.db.session import engine
|
||||
|
||||
# 3. Router importálása
|
||||
from app.api.v1.router import api_router
|
||||
|
||||
# --- Lifespan (Életciklus) Kezelő ---
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
# INDÍTÁS (Startup): Táblák létrehozása fejlesztői módban
|
||||
async with engine.begin() as conn:
|
||||
# Importáljuk a modelleket, hogy a Base tudjon róluk!
|
||||
from app.models import social, vehicle, user, logistics, expense
|
||||
|
||||
print("--- Adatbázis táblák ellenőrzése és létrehozása ---")
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
|
||||
yield # Itt fut az alkalmazás...
|
||||
|
||||
# LEÁLLÁS (Shutdown): Erőforrások elengedése
|
||||
print("--- Traffic Ecosystem SuperApp leállítása ---")
|
||||
await engine.dispose()
|
||||
|
||||
# --- Alkalmazás Inicializálása ---
|
||||
app = FastAPI(
|
||||
title=settings.PROJECT_NAME,
|
||||
version=settings.VERSION,
|
||||
openapi_url=f"{settings.API_V1_STR}/openapi.json",
|
||||
lifespan=lifespan,
|
||||
# Ez a beállítás segít, hogy a lakat megmaradjon frissítés után is
|
||||
swagger_ui_parameters={"persistAuthorization": True}
|
||||
)
|
||||
|
||||
# --- OpenAPI Biztonsági Séma (Hogy legyen Authorize gomb!) ---
|
||||
def custom_openapi():
|
||||
if app.openapi_schema:
|
||||
return app.openapi_schema
|
||||
|
||||
openapi_schema = get_openapi(
|
||||
title=app.title,
|
||||
version=app.version,
|
||||
description="API dokumentáció JWT hitelesítéssel",
|
||||
routes=app.routes,
|
||||
)
|
||||
|
||||
# Itt definiáljuk a lakatot és a JWT formátumot
|
||||
openapi_schema["components"]["securitySchemes"] = {
|
||||
"OAuth2PasswordBearer": {
|
||||
"type": "oauth2",
|
||||
"flows": {
|
||||
"password": {
|
||||
"tokenUrl": f"{settings.API_V1_STR}/auth/login"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Globálisan alkalmazzuk minden védett végpontra
|
||||
for path in openapi_schema["paths"]:
|
||||
for method in openapi_schema["paths"][path]:
|
||||
# Csak azokra a kérésekre rakunk lakatot, amik nincsenek a kivételek között
|
||||
# (Az auth/login és auth/register maradjon nyitva)
|
||||
if not any(x in path for x in ["/auth/login", "/auth/register"]):
|
||||
openapi_schema["paths"][path][method]["security"] = [{"OAuth2PasswordBearer": []}]
|
||||
|
||||
app.openapi_schema = openapi_schema
|
||||
return app.openapi_schema
|
||||
|
||||
# Felülírjuk az alapértelmezett OpenAPI generátort a sajátunkkal
|
||||
app.openapi = custom_openapi
|
||||
|
||||
# --- Middleware (CORS) ---
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"],
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
# --- Routerek csatolása ---
|
||||
app.include_router(api_router, prefix=settings.API_V1_STR)
|
||||
|
||||
# --- Gyökér végpont ---
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {
|
||||
"message": "Traffic Ecosystem SuperApp API fut",
|
||||
"version": settings.VERSION,
|
||||
"docs_url": "/docs"
|
||||
}
|
||||
1
code-server-config/data/User/History/-5314da0c/entries.json
Executable file
1
code-server-config/data/User/History/-5314da0c/entries.json
Executable file
@@ -0,0 +1 @@
|
||||
{"version":1,"resource":"vscode-remote://192.168.100.43:8443/home/coder/project/backend/app/main.py","entries":[{"id":"FkfR.py","timestamp":1769026236612},{"id":"Fp0w.py","timestamp":1769027988167},{"id":"jmij.py","timestamp":1769028127118},{"id":"9MWC.py","timestamp":1769031896319},{"id":"54N2.py","timestamp":1769032666605},{"id":"eSN2.py","timestamp":1769043761338},{"id":"MlfW.py","timestamp":1769106292762}]}
|
||||
65
code-server-config/data/User/History/-5314da0c/jmij.py
Executable file
65
code-server-config/data/User/History/-5314da0c/jmij.py
Executable file
@@ -0,0 +1,65 @@
|
||||
from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
# 1. Konfiguráció importálása
|
||||
from app.core.config import settings
|
||||
|
||||
# 2. Adatbázis importok (JAVÍTVA)
|
||||
# A 'Base' tartalmazza a modellek definícióit (app/db/base.py)
|
||||
from app.db.base import Base
|
||||
# Az 'engine' kezeli a kapcsolatot (app/db/session.py)
|
||||
from app.db.session import engine
|
||||
|
||||
# 3. Router importálása
|
||||
from app.api.v1.router import api_router
|
||||
|
||||
# --- Lifespan (Életciklus) Kezelő ---
|
||||
# Ez fut le az alkalmazás indulásakor és leállásakor
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
# INDÍTÁS (Startup): Táblák létrehozása fejlesztői módban
|
||||
async with engine.begin() as conn:
|
||||
# Fontos: Importálnunk kell a modelleket, hogy a Base tudjon róluk,
|
||||
# mielőtt létrehozzuk a táblákat!
|
||||
# Ha vannak új modelljeid (pl. logistics, user), írd hozzá őket ide:
|
||||
from app.models import social, vehicle
|
||||
|
||||
print("--- Adatbázis táblák ellenőrzése és létrehozása ---")
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
|
||||
yield # Itt fut az alkalmazás...
|
||||
|
||||
# LEÁLLÁS (Shutdown): Erőforrások elengedése
|
||||
print("--- Traffic Ecosystem SuperApp leállítása ---")
|
||||
await engine.dispose()
|
||||
|
||||
# --- Alkalmazás Inicializálása ---
|
||||
app = FastAPI(
|
||||
title=settings.PROJECT_NAME,
|
||||
version=settings.VERSION,
|
||||
openapi_url=f"{settings.API_V1_STR}/openapi.json",
|
||||
lifespan=lifespan
|
||||
)
|
||||
|
||||
# --- Middleware (CORS) ---
|
||||
# Engedélyezzük, hogy a frontend kommunikálhasson az API-val
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"], # FIGYELEM: Élesben ezt szigorítani kell (pl. a frontend domainjére)!
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
# --- Routerek csatolása ---
|
||||
app.include_router(api_router, prefix=settings.API_V1_STR)
|
||||
|
||||
# --- Gyökér végpont ---
|
||||
@app.get("/")
|
||||
async def root():
|
||||
return {
|
||||
"message": "Traffic Ecosystem SuperApp API fut",
|
||||
"version": settings.VERSION,
|
||||
"docs_url": "/docs" # Segítség a fejlesztőknek
|
||||
}
|
||||
Reference in New Issue
Block a user