Skip to content

Commit 7f57ea3

Browse files
committed
Change /api/status to /statusz
1 parent f1cfc91 commit 7f57ea3

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

backend/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def handle_preflight() -> Union[Response, None]:
5353
api.add_resource(DeployResource, '/deploy')
5454

5555
# API health check endpoint to distinguish from static file serving
56-
@app.route('/api/status')
57-
def api_status() -> Response:
56+
@app.route('/statusz')
57+
def statusz() -> Response:
5858
"""Health check endpoint to identify backend server"""
5959
return jsonify({
6060
'status': 'ok',

src/storage/server_side_storage.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@ export async function isServerAvailable(): Promise<boolean> {
3232
});
3333

3434
// Check the specific API status endpoint to distinguish backend from static file server
35-
// Use absolute path without base URL since /api/status is a backend endpoint
35+
// Use absolute path without base URL since /statusz is a backend endpoint
3636
const response = await Promise.race([
37-
fetch(`${API_BASE_URL}/api/status`),
37+
fetch('/statusz'),
3838
timeoutPromise
39-
]);
40-
41-
if (!response.ok) {
39+
]); if (!response.ok) {
4240
return false;
4341
}
4442

0 commit comments

Comments
 (0)