- User model (users table) with bcrypt password hashing - JWT-based login API (POST /api/auth/login, GET /api/auth/me) - Default admin account (admin/admin123) auto-created on startup - Login page with centered dark-themed login card - Route guards + Axios interceptors for token management - Login page renders without sidebar (standalone layout) - Gunicorn --preload to avoid worker DDL race condition
25 lines
961 B
Python
25 lines
961 B
Python
"""Pydantic schema registry."""
|
|
|
|
from app.schemas.agent import AgentBatchRegister, AgentBatchRegisterResult, AgentCreate, AgentHeartbeat, AgentOut, AgentUpdate # noqa: F401
|
|
from app.schemas.auth import LoginRequest, TokenResponse, UserInfo, UserOut # noqa: F401
|
|
from app.schemas.execution import ExecutionOut, ExecutionReport # noqa: F401
|
|
from app.schemas.notification import ( # noqa: F401
|
|
AlertAcknowledge,
|
|
AlertOut,
|
|
AlertRuleCreate,
|
|
AlertRuleOut,
|
|
NotificationChannelCreate,
|
|
NotificationChannelOut,
|
|
NotificationChannelUpdate,
|
|
)
|
|
from app.schemas.task import TaskCreate, TaskOut, TaskUpdate # noqa: F401
|
|
|
|
__all__ = [
|
|
"AgentCreate", "AgentUpdate", "AgentOut", "AgentHeartbeat",
|
|
"TaskCreate", "TaskUpdate", "TaskOut",
|
|
"ExecutionReport", "ExecutionOut",
|
|
"NotificationChannelCreate", "NotificationChannelUpdate", "NotificationChannelOut",
|
|
"AlertRuleCreate", "AlertRuleOut",
|
|
"AlertOut", "AlertAcknowledge",
|
|
]
|