Buckets:

download
raw
697 Bytes
"""
big-project API
FastAPI application entry point.
"""
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI(
title="big-project API",
description="API for big-project",
version="1.0.0"
)
# CORS middleware
app.add_middleware(
CORSMiddleware,
allow_origins=["http://localhost:3000"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
@app.get("/")
async def root():
return {"message": "Welcome to big-project API"}
@app.get("/health")
async def health():
return {"status": "healthy"}
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000, reload=True)

Xet Storage Details

Size:
697 Bytes
·
Xet hash:
8730584b63bd02350809e533662f343a5931971597a61022d337a6c484358cea

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.