Rename poll-status to public path /api/v1/poll-status to reflect no-auth design

Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/15d037ef-2d5e-44ab-a15d-7908187e9106

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-29 23:46:37 +00:00
parent dfef73040c
commit 04e6dcfb8c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -581,8 +581,8 @@ async def trigger_imap_poll(auth: dict = Depends(require_admin_auth)):
}
# API endpoint to check status of IMAP polling
@app.get("/api/v1/admin/poll-status")
# API endpoint to check status of IMAP polling (public, read-only)
@app.get("/api/v1/poll-status")
async def get_poll_status():
"""
Get the status of IMAP polling (read-only, no authentication required).
+1 -1
View File
@@ -199,7 +199,7 @@ function dashboardApp() {
async getImapStatus() {
try {
const response = await fetch('/api/v1/admin/poll-status');
const response = await fetch('/api/v1/poll-status');
if (!response.ok) {
console.error('Error checking IMAP status:', response.status);
return;