added questions generator

This commit is contained in:
OwusuBlessing
2024-09-10 02:51:31 +01:00
parent 286ff0e61e
commit 348c871abc
9 changed files with 271 additions and 39 deletions
+2
View File
@@ -1,12 +1,14 @@
import os
from flask import Flask
from src.api.routes.sops import sops_bp
from src.api.routes.questions import qs_b
def create_app():
app = Flask(__name__)
# Register the blueprint with the desired prefix
app.register_blueprint(sops_bp, url_prefix='/api/v1/sop')
app.register_blueprint(qs_b,url_prefix='/api/v1/qs')
# Set up the upload folder configuration inside the src directory
UPLOAD_FOLDER = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../uploads')