Added routes
This commit is contained in:
+3
-4
@@ -1,7 +1,7 @@
|
||||
from flask import Flask
|
||||
from flask_cors import CORS
|
||||
from app.config import Config
|
||||
from app.routes import auth_bp, eligibility_bp, loan_bp
|
||||
from app.routes import auth_bp, autocall_bp
|
||||
from app.errors import method_not_allowed, unsupported_media_type
|
||||
|
||||
|
||||
@@ -16,9 +16,8 @@ def create_app():
|
||||
|
||||
# Register blueprints
|
||||
app.register_blueprint(auth_bp)
|
||||
app.register_blueprint(loan_bp, url_prefix="/loans")
|
||||
app.register_blueprint(eligibility_bp, url_prefix="/eligibility")
|
||||
# app.register_blueprint(repayment_bp)
|
||||
app.register_blueprint(autocall_bp, url_prefix="/autocall")
|
||||
|
||||
|
||||
# Error Handlers
|
||||
app.register_error_handler(405, method_not_allowed)
|
||||
|
||||
Reference in New Issue
Block a user