Code: Select all
app/
----api/
--------endpoints/
------------auth.py (routers that should use schemas)
----schemas/
--------user.py (schemas related to users)
----main.py (code with fastapi that include routers(endpoints))
< /code>
In Auth.py sieht es so aus: < /p>
screenshot < /p>
from app import schemas
später Auth.py sollte Klassen verwenden, die in Schemas wie 'Schemas.Token' hergestellt werden.>
Mobile version