added worker validation bot

This commit is contained in:
OwusuBlessing
2024-09-11 14:46:03 +01:00
parent 594f0eadb3
commit 9d02369e41
7 changed files with 248 additions and 69 deletions
+2
View File
@@ -2,6 +2,7 @@ import os
from flask import Flask
from src.api.routes.sops import sops_bp
from src.api.routes.questions import qs_b
from src.api.routes.chatbot import bot
def create_app():
app = Flask(__name__)
@@ -9,6 +10,7 @@ def create_app():
# 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')
app.register_blueprint(bot,url_prefix='/api/v1/bot')
# Set up the upload folder configuration inside the src directory
UPLOAD_FOLDER = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../../uploads')