Skip to content
Snippets Groups Projects

Feature/get graph data from gap

Merged Neda Moeini requested to merge feature/get-graph-data-from-gap into master
Files
4
"""Initializes the FastAPI application."""
"""Create a FastAPI application for the mapping provider."""
from fastapi import FastAPI
from mapping_provider.api.common import router as version_router
from mapping_provider.api.network_graph import router as graph_router
def create_app() -> FastAPI:
"""Create a FastAPI application."""
@@ -11,5 +11,12 @@ def create_app() -> FastAPI:
title="Mapping provider",
description="Mapping provider endpoints for GÉANT maps",
)
# Force configuration to be loaded at startup to avoid issues with missing config
from mapping_provider.dependencies import load_config
_ = load_config()
app.include_router(version_router)
return app
app.include_router(graph_router)
return app
\ No newline at end of file
Loading