chore: add TODO for admin interface

This commit is contained in:
2026-03-09 23:37:13 -06:00
parent a0e6042300
commit 9fe3bc43d0
+3
View File
@@ -177,6 +177,9 @@ def index():
logger.info("Rendering index with %d guests.", len(guests)) logger.info("Rendering index with %d guests.", len(guests))
return render_template('index.html', error=error, guests=guests) return render_template('index.html', error=error, guests=guests)
# TODO: Add an admin interface for reviewing and deleting guest entries.
# Should include: paginated entry list, per-entry delete, and authentication
# (e.g. HTTP Basic Auth or a simple token) to restrict access.
@app.route('/api/guests', methods=['GET']) @app.route('/api/guests', methods=['GET'])
def api_guests(): def api_guests():
api_key = request.headers.get('X-API-Key') api_key = request.headers.get('X-API-Key')