-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
34 lines (25 loc) · 787 Bytes
/
Copy pathapp.py
File metadata and controls
34 lines (25 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from flask import Flask, render_template, send_from_directory
app = Flask(__name__)
@app.errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
@app.route('/')
def index():
return render_template('index.html')
@app.route('/about')
def about():
return render_template('about.html')
@app.route('/projects')
def projects():
return render_template('projects.html')
@app.route('/accolades')
def accolades():
return render_template('accolades.html')
@app.route('/real-world-experience')
def experience():
return render_template('real-world-experience.html')
@app.route('/resume') # Placeholder for now
def resume():
return send_from_directory('resume', 'Chatzikallias_Panagiotis.pdf')
if __name__ == '__main__':
app.run()