mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 05:09:58 -05:00
Checking readiness of main app in Controller instead of javascript requests, which break with CORS.
This commit is contained in:
parent
8c294dad39
commit
ef32e8b42d
7 changed files with 227 additions and 43 deletions
|
|
@ -325,3 +325,14 @@ class BranchResponse(BaseModel):
|
|||
"""Response model for current git branch."""
|
||||
|
||||
branch: Optional[str] = Field(description="Current git branch, or null if unavailable")
|
||||
|
||||
|
||||
# ============================================================================
|
||||
# Readiness
|
||||
# ============================================================================
|
||||
|
||||
class ReadyResponse(BaseModel):
|
||||
"""Response model for /api/ready endpoint."""
|
||||
|
||||
api: bool = Field(description="Whether the main WROLPi API is responding")
|
||||
app: bool = Field(description="Whether the React app is responding")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue