fix #26 (backend,frontend): Frontend can't apply codecs filters correctly #37
@@ -3,7 +3,7 @@
|
||||
|
||||
from fastapi import APIRouter
|
||||
|
||||
from audio_splitter.constants import CONTAINER_INFO, CODEC_INFO
|
||||
from audio_splitter.constants import CONTAINER_INFO, CODEC_INFO, COMPATIBILITY_MATRIX
|
||||
|
||||
router = APIRouter(prefix="/api", tags=["formats"])
|
||||
|
||||
@@ -11,9 +11,10 @@ router = APIRouter(prefix="/api", tags=["formats"])
|
||||
@router.get("/formats")
|
||||
async def get_formats():
|
||||
"""
|
||||
Return the list of supported containers and codecs.
|
||||
Return the list of supported containers, codecs, and compatibility matrix.
|
||||
"""
|
||||
return {
|
||||
"containers": CONTAINER_INFO,
|
||||
"codecs": CODEC_INFO,
|
||||
"compatibility": COMPATIBILITY_MATRIX,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user