Update goathacks/__init__.py

Co-authored-by: Cara Salter <cara@devcara.com>
This commit is contained in:
William Ryan 2022-12-20 18:51:33 -05:00 committed by GitHub
parent fb3741be43
commit c0a932d30c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,14 +54,10 @@ def create_app():
def sponsor(path):
return send_from_directory('templates/home/sponsor', path)
#Code of condcut
@app.route("/conduct")
def conductindex():
return render_template('home/conduct/index.html')
@app.route('/conduct/<path:path>')
#Code of conduct
@app.route('/conduct/conduct.pdf')
def conduct(path):
return send_from_directory('templates/home/conduct', path)
return url_for('static', filename='conduct.pdf')
# Homepage
@app.route("/")