Jacob Windsor 861eac6d46 More setup
2025-02-19 12:39:01 +01:00

21 lines
496 B
Python

from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from backend.app.dtos import predictions
app = FastAPI(
title="Housing Price Predictor API",
description="API for predicting housing prices",
version="1.0.0"
)
# Add CORS middleware
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
# Include routers
app.include_router(predictions.router, prefix="/api/v1")