diff --git a/api/ovkiosk/routers/text.py b/api/ovkiosk/routers/text.py index 352df64..c78ab05 100644 --- a/api/ovkiosk/routers/text.py +++ b/api/ovkiosk/routers/text.py @@ -21,7 +21,7 @@ _title = "" @router.on_event("startup") -async def on_startup(): +async def on_startup() -> None: global _message, _ticker, _title _message = DavFile(CLIENT.resource("message.txt")) @@ -33,7 +33,7 @@ async def on_startup(): @router.get("/message") -async def get_message(): +async def get_message() -> str: return _md.convert( str(_message) ) @@ -92,12 +92,12 @@ async def get_ticker_commands( @router.get("/ticker/commands", response_model=list[TickerCommand]) async def get_ticker_commands( ticker_commands: Iterator[str] = Depends(get_ticker_commands) -): +) -> list[TickerCommand]: return list(ticker_commands) @router.get("/title") -async def get_title(): +async def get_title() -> str: return _md.convert( str(_title) )