File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99from apiflask import APIFlask
1010
1111from app .celery_worker import make_celery , celery
12- from app .ro_crates .routes import ro_crates_post_bp , ro_crates_get_bp
12+ from app .ro_crates .routes import v1_post_bp , v1_get_bp
1313from app .utils .config import DevelopmentConfig , ProductionConfig , make_celery
1414
1515
@@ -20,8 +20,8 @@ def create_app() -> APIFlask:
2020 :return: Flask: A configured Flask application instance.
2121 """
2222 app = APIFlask (__name__ )
23- app .register_blueprint (ro_crates_post_bp , url_prefix = "/ro_crates " )
24- app .register_blueprint (ro_crates_get_bp , url_prefix = "/ro_crates " )
23+ app .register_blueprint (v1_post_bp , url_prefix = "/v1 " )
24+ app .register_blueprint (v1_get_bp , url_prefix = "/v1 " )
2525
2626 # Load configuration:
2727 if os .getenv ("FLASK_ENV" ) == "production" :
Original file line number Diff line number Diff line change 44# License: MIT
55# Copyright (c) 2025 eScience Lab, The University of Manchester
66
7- from apiflask import APIBlueprint
8-
97from app .ro_crates .routes .post_routes import post_routes_bp
108from app .ro_crates .routes .get_routes import get_routes_bp
119
12- #ro_crates_bp = APIBlueprint("ro_crates", __name__)
13-
14- #ro_crates_bp.register_blueprint(post_routes_bp, url_prefix="/post")
15-
16- ro_crates_post_bp = post_routes_bp
17- ro_crates_get_bp = get_routes_bp
10+ v1_post_bp = post_routes_bp
11+ v1_get_bp = get_routes_bp
You can’t perform that action at this time.
0 commit comments