Skip to content
Snippets Groups Projects
Select Git revision
  • b4ce51a3b7b5bd578496e680eb1a4cba0663fdab
  • master default
  • v1.2.0
  • v1.1.0
  • v1.0.0
5 results

Controller$3.class

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)