mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-11-17 18:43:15 +01:00
add initial implementation of auth gateway with models, routes, and session management
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class StaticRouteModel(BaseModel):
|
||||
path_prefix: str
|
||||
root: str
|
||||
strip_prefix: str | None = None
|
||||
cache_control: str | None = None
|
||||
|
||||
|
||||
class ApplicationModel(BaseModel):
|
||||
id: str
|
||||
name: str
|
||||
hosts: list[str] = Field(default_factory=list)
|
||||
upstream: str
|
||||
static_routes: list[StaticRouteModel] = Field(default_factory=list)
|
||||
|
||||
|
||||
class ApplicationsFileModel(BaseModel):
|
||||
entries: list[ApplicationModel] = Field(default_factory=list)
|
||||
Reference in New Issue
Block a user