Skip to content
Snippets Groups Projects
Commit 67434c75 authored by Ondřej Borýsek's avatar Ondřej Borýsek
Browse files

Add root route without trailing slash

parent 11f0a250
No related branches found
No related tags found
No related merge requests found
...@@ -5,10 +5,12 @@ from template_pwndoc import TNSTemplatePwndoc ...@@ -5,10 +5,12 @@ from template_pwndoc import TNSTemplatePwndoc
from template_manager import PwndocTemplateManager from template_manager import PwndocTemplateManager
from helpers.template_grouping import TemplateGrouping from helpers.template_grouping import TemplateGrouping
from typing import List from typing import List
from loguru import logger
bp = Blueprint('api_root', __name__, template_folder='templates') bp = Blueprint('api_root', __name__, template_folder='templates')
@bp.route("")
@bp.route("/") @bp.route("/")
def homepage(): def homepage():
return render_template('base.html') return render_template('base.html')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment