14 lines
362 B
Python
14 lines
362 B
Python
# Entity: Version
|
|
|
|
```python
|
|
from fastapi import APIRouter, status
|
|
from schemas.version import VersionSchema
|
|
from helpers.version_helpers import get_server_version
|
|
|
|
router = APIRouter()
|
|
|
|
@router.get("/version", response_model=VersionSchema, status_code=status.HTTP_200_OK)
|
|
async def get_version():
|
|
"""Get server version"""
|
|
return get_server_version()
|
|
``` |