Skip to content

Commit c7ccc96

Browse files
authored
Merge pull request lightspeed-core#260 from tisnik/lcore-389-fixed-info-endpoint
LCORE-389: Fixed /info endpoint
2 parents 91db47e + 712e289 commit c7ccc96

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/endpoints/info.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from fastapi import APIRouter, Request
77

8+
from configuration import configuration
89
from version import __version__
910
from models.responses import InfoResponse
1011

@@ -23,4 +24,4 @@
2324
@router.get("/info", responses=get_into_responses)
2425
def info_endpoint_handler(_request: Request) -> InfoResponse:
2526
"""Handle request to the /info endpoint."""
26-
return InfoResponse(name="foo", version=__version__)
27+
return InfoResponse(name=configuration.configuration.name, version=__version__)

0 commit comments

Comments
 (0)