main.py
from fastapi import FastAPIfrom backend.router import router app = FastAPI() app.include_router(router)
router.py
from fastapi import APIRouterrouter = APIRouter() @router.get('/')def hello(): """Hello world route to make sure the app is working correctly""" return {"msg": "Hello World!"}