-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configured init.py and tested adding new routes
- Loading branch information
1 parent
682a796
commit 6a42e8c
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from flask import render_template | ||
|
||
|
||
def load(app): | ||
|
||
@app.route('/faq', methods=['GET']) | ||
def view_faq(): | ||
return render_template('page.html', content="<h1>FAQ Page</h1>") | ||
|
||
@app.route('/user/challenges',methods=['GET']) | ||
def view_challenges(): | ||
return render_template('admin/challenges/challenges.html') | ||
|
||
#TODO: add custom html extension of admin/challenges/challenges | ||
# change methods to check for rights and only display challenges by user | ||
# add custom html to change challenge editing to be available to users | ||
# | ||
# add other plugin to modify challenge creation? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"name": "UserChallengeManagement", | ||
"route": "/user/challenges" | ||
} |