feat: implement proxy management endpoints and MongoDB integration

This commit is contained in:
gabdevele
2026-04-12 00:55:29 +02:00 Unverified
parent 1b03ac7541
commit b4a84e70a2
6 changed files with 209 additions and 25 deletions
+7 -5
View File
@@ -1,6 +1,8 @@
from pydantic import BaseModel, Field
from pydantic import BaseModel, ConfigDict, Field
class ServiceDocument(BaseModel):
name: str = Field(..., description="Name of the service")
port: int = Field(..., description="Port number of the service")
category: str = Field(..., description="Category of the service (e.g., web, pwn, etc.)")
class ServiceEndpointDocument(BaseModel):
model_config = ConfigDict(extra="forbid")
address: str = Field(..., description="Upstream service address")
port: int = Field(..., description="Upstream service port")