Started from scratch and failed

Issue with register_blueprint
This commit is contained in:
viveksantayana committed 2022-06-11 02:39:47 +01:00
1 parent 7af588da6c
commit 436c8e0e2d
99 files changed
+210 -5920

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
from flask import Blueprint
api = Blueprint(
name='api',
import_name=__name__
)
@api.route('/questions/', methods=['POST'])
def _fetch_questions():
return 'Fetch Questions'
@api.route('/submit/', methods=['POST'])
def _submit_quiz():
return 'Submit Quiz'