Added routing for sponsor package and code of conduct #6
1 changed files with 3 additions and 7 deletions
|
@ -54,14 +54,10 @@ def create_app():
|
||||||
def sponsor(path):
|
def sponsor(path):
|
||||||
return send_from_directory('templates/home/sponsor', path)
|
return send_from_directory('templates/home/sponsor', path)
|
||||||
|
|
||||||
#Code of condcut
|
#Code of conduct
|
||||||
@app.route("/conduct")
|
@app.route('/conduct/conduct.pdf')
|
||||||
def conductindex():
|
|
||||||
return render_template('home/conduct/index.html')
|
|
||||||
|
|
||||||
@app.route('/conduct/<path:path>')
|
|
||||||
def conduct(path):
|
def conduct(path):
|
||||||
return send_from_directory('templates/home/conduct', path)
|
return url_for('static', filename='conduct.pdf')
|
||||||
|
|
||||||
# Homepage
|
# Homepage
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
|
|
Loading…
Add table
Reference in a new issue