Skip to content
Snippets Groups Projects
Select Git revision
  • 84a51725c68c54c9f1a081b6114823717c00475e
  • master default
  • renovate/fastapi-0.x
  • v2.21.0
  • v2.20.1
  • v2.20.0
  • v2.19.0
  • v2.18.1
  • v2.18.0
  • v2.17.0
  • v2.16.0
  • v2.15.0
  • v2.14.0
  • v2.13.1
  • v2.13.0
  • v2.12.0
  • v2.11.0
  • v2.10.0
  • v2.9.0
  • v2.8.0
  • v2.7.0
  • v2.6.0
  • v2.5.0
23 results

GeneralRouter.py

Blame
  • GeneralRouter.py 356 B
    from fastapi import APIRouter
    
    from Settings import VERSION
    from logic.database import Schemas
    
    router = APIRouter(
        prefix='/general',
        tags=['general']
    )
    
    
    @router.get('/version',
                summary='Gets information about the server version',
                response_model=Schemas.Version)
    async def version():
        return Schemas.Version(**VERSION)