13 lines
334 B
Python
13 lines
334 B
Python
from fastapi import FastAPI
|
|
from app.api.endpoints import upload
|
|
|
|
app = FastAPI(title="File Manager API")
|
|
|
|
# Подключаем роутер для загрузки файлов
|
|
app.include_router(upload.router, prefix="/files", tags=["Files"])
|
|
|
|
|
|
@app.get("/")
|
|
def read_root():
|
|
return {"message": "File Manager API is running"}
|