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:
20
containers/auth-gateway/auth_gateway/models/applications.py
Normal file
20
containers/auth-gateway/auth_gateway/models/applications.py
Normal file
@@ -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