febus982/bootstrap-python-fastapi

View on GitHub
src/http_app/routes/__init__.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
from fastapi import FastAPI

from http_app.routes import api, events, graphql, hello, ping


def init_routes(app: FastAPI) -> None:
    app.include_router(api.router)
    app.include_router(ping.router)
    app.include_router(hello.router)
    app.include_router(events.router)
    app.include_router(graphql.router, prefix="/graphql")