mirror of
https://github.com/tmdinosaurcenter/kiosk-guestbook.git
synced 2026-06-04 01:28:46 -06:00
chore: add TODO for admin interface
This commit is contained in:
@@ -177,6 +177,9 @@ def index():
|
||||
logger.info("Rendering index with %d guests.", len(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'])
|
||||
def api_guests():
|
||||
api_key = request.headers.get('X-API-Key')
|
||||
|
||||
Reference in New Issue
Block a user