Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions python/routes/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# 77:0 0:0 1:1
# 77:7 0:0 1:1
# DOC module: admin
# DOC label: Admin Email Allowlist
# DOC description: Admin-only endpoints for listing, adding, and removing admin email allowlist entries.
# DOC tier: admin
# DOC endpoint: GET /api/v1/admin/emails | List configured admin email entries.
# DOC endpoint: POST /api/v1/admin/emails | Add an admin email entry.
# DOC endpoint: DELETE /api/v1/admin/emails/{email} | Remove an admin email entry.
import os
from typing import Optional
from fastapi import APIRouter, Request
Expand Down Expand Up @@ -93,4 +100,4 @@ async def remove_admin_email(request: Request, email: str):
if result.rowcount == 0:
return JSONResponse(status_code=404, content={"error": "Not found"})
return {"ok": True, "email": target}
# 77:0 0:0 1:1
# 77:7 0:0 1:1
Loading