mirror of
https://github.com/tmdinosaurcenter/kiosk-guestbook.git
synced 2026-06-03 23:09:35 -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))
|
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')
|
||||||
|
|||||||
Reference in New Issue
Block a user