mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-17 22:36:17 +00:00
add initial implementation of auth gateway with models, routes, and session management
This commit is contained in:
16
containers/auth-gateway/auth_gateway/models/routes.py
Normal file
16
containers/auth-gateway/auth_gateway/models/routes.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class RoutePolicyBindingModel(BaseModel):
|
||||
id: str | None = None
|
||||
path_prefix: str
|
||||
policy: str
|
||||
|
||||
|
||||
class AppRoutesModel(BaseModel):
|
||||
routes: list[RoutePolicyBindingModel] = Field(default_factory=list)
|
||||
default_policy: str | None = None
|
||||
|
||||
|
||||
class RoutesFileModel(BaseModel):
|
||||
entries: dict[str, AppRoutesModel] = Field(default_factory=dict)
|
||||
Reference in New Issue
Block a user