mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-05 12:53:30 +03:00
Update FastAPI example
This commit is contained in:
parent
7cf804ea33
commit
15b32f9c01
|
@ -113,9 +113,9 @@ The output should be something like:
|
|||
giphynavigator/__init__.py 0 0 100%
|
||||
giphynavigator/application.py 13 0 100%
|
||||
giphynavigator/containers.py 6 0 100%
|
||||
giphynavigator/endpoints.py 5 0 100%
|
||||
giphynavigator/endpoints.py 6 0 100%
|
||||
giphynavigator/giphy.py 14 9 36%
|
||||
giphynavigator/services.py 9 1 89%
|
||||
giphynavigator/tests.py 38 0 100%
|
||||
---------------------------------------------------
|
||||
TOTAL 85 10 88%
|
||||
TOTAL 86 10 88%
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
"""Endpoints module."""
|
||||
|
||||
from dependency_injector.wiring import Provide
|
||||
from dependency_injector.wiring import inject, Provide
|
||||
|
||||
from .containers import Container
|
||||
|
||||
|
||||
@inject
|
||||
async def index(
|
||||
query: str = Provide[Container.config.default.query],
|
||||
limit: int = Provide[Container.config.default.limit.as_int()],
|
||||
|
|
Loading…
Reference in New Issue
Block a user