feat: implement proxy management endpoints and MongoDB integration
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user