fix: backend optional types + firewall frontend initial code

This commit is contained in:
Domingo Dirutigliano
2023-09-23 02:02:02 +02:00
parent e549d9cf2a
commit ae8dbd9423
12 changed files with 175 additions and 34 deletions

View File

@@ -48,10 +48,10 @@ def list_routers():
return [ele[:-3] for ele in list_files(ROUTERS_DIR) if ele != "__init__.py" and " " not in ele and ele.endswith(".py")]
class RouterModule():
router: None|APIRouter
reset: None|Callable
startup: None|Callable
shutdown: None|Callable
router: APIRouter|None = None
reset: Callable|None = None
startup: Callable|None = None
shutdown: Callable|None = None
name: str
def __init__(self, router: APIRouter, reset: Callable, startup: Callable, shutdown: Callable, name:str):