fastrag.serve.geolocalization.dependencies#
FastAPI dependency exposing the app’s CountryResolver.
Functions
|
Return the |
- fastrag.serve.geolocalization.dependencies.get_country_resolver(request)[source]#
Return the
CountryResolverbuilt once bycreate_app.A dependency rather than a direct
app.stateread, so tests can swap it viaapp.dependency_overrides[get_country_resolver].- Parameters:
request (Request)
- Return type: