Skip to content

Commit

Permalink
route /about properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Highfire1 committed Jun 22, 2024
1 parent 5584ac8 commit 67211fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
def index():
return send_from_directory("static", "index.html")

@app.route('/about')
def about():
return send_from_directory("static", "about.html")

# serve css / jss / assets for index.html
@app.route('/<path:filename>')
def index_files(filename:str):
Expand Down
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ <h1>Thank you for using the Langara Course Planner!</h1>
</div>

<footer id="footer" class="footer">
<a href="about.html" target="_blank">About</a>
<a href="about" target="_blank">About</a>
<!-- <label>
<input type="button" id="mode4Button" value="About">
</label> -->
Expand Down

0 comments on commit 67211fd

Please sign in to comment.