- Implemented SoundRepository for database operations related to sounds, including methods for retrieving, creating, updating, and deleting sound records. - Developed SoundScannerService to scan directories for audio files, calculate their metadata, and synchronize with the database. - Added support for various audio file formats and integrated ffmpeg for audio duration extraction. - Created comprehensive tests for sound API endpoints and sound scanner service to ensure functionality and error handling. - Updated dependencies to include ffmpeg-python for audio processing.
15 lines
452 B
Python
15 lines
452 B
Python
"""API v1 package."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from app.api.v1 import auth, main, socket, sounds
|
|
|
|
# V1 API router with v1 prefix
|
|
api_router = APIRouter(prefix="/v1")
|
|
|
|
# Include all route modules
|
|
api_router.include_router(main.router, tags=["main"])
|
|
api_router.include_router(auth.router, prefix="/auth", tags=["authentication"])
|
|
api_router.include_router(socket.router, tags=["socket"])
|
|
api_router.include_router(sounds.router, tags=["sounds"])
|