refactor: remove duplicate utils.py, dead license_routes, and pytest.ini
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
from pathlib import Path
|
||||
|
||||
from fastapi import APIRouter, HTTPException
|
||||
from fastapi.responses import PlainTextResponse
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
|
||||
@router.get("/licenses/lgpl.txt", response_class=PlainTextResponse)
|
||||
async def get_lgpl_license():
|
||||
"""
|
||||
Serve the LGPL license text file
|
||||
"""
|
||||
license_path = Path("frontend/static/licenses/lgpl.txt")
|
||||
if not license_path.exists():
|
||||
raise HTTPException(status_code=404, detail="License file not found")
|
||||
|
||||
with open(license_path, "r") as f:
|
||||
return f.read()
|
||||
@@ -1,7 +0,0 @@
|
||||
# app/utils.py
|
||||
# This file is deprecated. Functions have been moved to the utils package.
|
||||
# To avoid breaking existing imports, we'll import and re-export the functions
|
||||
from app.utils.file_operations import hash_file # noqa: F401
|
||||
from app.utils.logging import log_task_progress # noqa: F401
|
||||
|
||||
# These functions are now available directly from the app.utils package
|
||||
Reference in New Issue
Block a user