from fastapi import FastAPI import json app = FastAPI() @app.get("/") def home(): return {"message": "Welcome to DemoTel Product Catalog"} @app.get("/products") def get_products(): with open("products.json", "r") as file: products = json.load(file) return products