Skip to content

Commit d4611e4

Browse files
author
Jonah Kuria
committed
[ch_10] - use check logged in decorate on view log route
1 parent 743ddd2 commit d4611e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webapp/vsearch_for_web.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def entry_page() -> 'html':
5656
the_title='Welcome to search_for_letters on the web!')
5757

5858
@app.route('/viewlog')
59+
@check_logged_in
5960
def view_the_log() -> 'html':
6061
"""Display the contents of the log file as a HTML table."""
6162
with UseDatabase(app.config['dbconfig']) as cursor:

0 commit comments

Comments
 (0)