code quality run
This commit is contained in:
35
main.py
35
main.py
@@ -1,13 +1,15 @@
|
||||
from fastapi import FastAPI, Depends, HTTPException
|
||||
from sqlalchemy.orm import Session
|
||||
from sqlalchemy import text
|
||||
from app.core.config import settings
|
||||
from app.core.lifespan import lifespan
|
||||
from app.core.database import get_db
|
||||
from datetime import datetime
|
||||
from app.api.main import api_router
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
import logging
|
||||
from datetime import datetime
|
||||
|
||||
from fastapi import Depends, FastAPI, HTTPException
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from sqlalchemy import text
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.api.main import api_router
|
||||
from app.core.config import settings
|
||||
from app.core.database import get_db
|
||||
from app.core.lifespan import lifespan
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -16,7 +18,7 @@ app = FastAPI(
|
||||
title=settings.project_name,
|
||||
description=settings.description,
|
||||
version=settings.version,
|
||||
lifespan=lifespan
|
||||
lifespan=lifespan,
|
||||
)
|
||||
|
||||
# Add CORS middleware
|
||||
@@ -44,10 +46,17 @@ def root():
|
||||
"JWT Authentication",
|
||||
"Marketplace-aware product import",
|
||||
"Multi-shop product management",
|
||||
"Stock management with location tracking"
|
||||
"Stock management with location tracking",
|
||||
],
|
||||
"supported_marketplaces": ["Letzshop", "Amazon", "eBay", "Etsy", "Shopify", "Other"],
|
||||
"auth_required": "Most endpoints require Bearer token authentication"
|
||||
"supported_marketplaces": [
|
||||
"Letzshop",
|
||||
"Amazon",
|
||||
"eBay",
|
||||
"Etsy",
|
||||
"Shopify",
|
||||
"Other",
|
||||
],
|
||||
"auth_required": "Most endpoints require Bearer token authentication",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user