2024-12-02 08:45:08 +01:00
|
|
|
from fastapi import FastAPI
|
2024-12-02 21:15:25 +01:00
|
|
|
from .routes.cart_routes import router as cart_router
|
|
|
|
from .routes.user_routes import router as user_router
|
|
|
|
|
|
|
|
|
|
|
|
app = FastAPI(
|
|
|
|
title="SWAG Shop",
|
|
|
|
version="0.0.1"
|
|
|
|
)
|
|
|
|
|
|
|
|
app.include_router(user_router)
|
|
|
|
app.include_router(cart_router)
|
2024-12-02 08:45:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
@app.get("/")
|
|
|
|
async def root():
|
2024-12-02 21:15:25 +01:00
|
|
|
return {"message": "Hello World"}
|