Views into module

This commit is contained in:
2022-06-12 21:02:22 +01:00
parent 9459b93c9b
commit 66e7b2b9f8
3 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
from flask import Blueprint
quiz = Blueprint(
name='quiz',
import_name=__name__,
template_folder='templates',
static_folder='static'
)
@quiz.route('/')
@quiz.route('/home/')
def _home():
return 'Quiz Home Page'
@quiz.route('/instructions/')
def _instructions():
return 'Instructions'
@quiz.route('/start/')
def _start():
return 'Start Quiz'
@quiz.route('/quiz/')
def _quiz():
return 'Quiz Console'
@quiz.route('/result/')
def _result():
return 'Quiz Result'