Merge pull request #4 from SebastianSpeitel/patch-1

Added mail
This commit is contained in:
Clemens Riese 2019-12-14 14:16:31 +01:00 committed by GitHub
commit 4c93be3c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

5
app.py
View File

@ -51,6 +51,11 @@ def modultafeln(course=""):
return redirect("https://www.tu-ilmenau.de/modultafeln/" + courseToPath.get(course, ""), code=302)
@app.route('/mail/')
@app.route('/webmail/')
def mail():
return redirect("https://webmail.tu-ilmenau.de/", code=302)
if __name__ == '__main__':
# Bind to PORT if defined, otherwise default to 5000.
port = int(os.environ.get('PORT', 5000))