frontend, etc.

This commit is contained in:
2024-05-17 09:41:26 +02:00
parent 2185b217e1
commit c1c9f98e87
19 changed files with 573 additions and 17 deletions

16
app/routers/songs.py Normal file
View File

@@ -0,0 +1,16 @@
from fastapi import APIRouter, HTTPException, Security
from app.models import Song
from app.dependencies import dbEngine, Base, dbSession
from app.routers.user import get_current_user, User
from typing import Annotated
router = APIRouter(
prefix="/songs",
#dependencies=[Security(get_current_user, scopes=["public"])],
responses={404: {"description": "Not found"}},
)
@router.get("/")
async def get_songs() -> list[dict]:
return dbSession.query(Base.songs).all()