Skip to content

Commit bbc9e85

Browse files
committed
feat : 개선함
1 parent ce59b53 commit bbc9e85

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app/diary/router.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ async def create_diary_with_emotion_based_recommendation(
755755
return response_data
756756

757757

758-
@router.get("/{diary_id}", response_model=DiaryResponse)
758+
@router.get("/{diary_id}", response_model=DiaryResponse, summary = "일기 단편 조회")
759759
def get_diary(
760760
diary_id: int,
761761
current_user: User = Depends(get_current_user),
@@ -942,7 +942,7 @@ def get_diary_count_by_month(
942942
diary_count=diary_count
943943
)
944944

945-
@router.put("/{diary_id}/set-main-song", status_code=200)
945+
@router.put("/{diary_id}/set-main-song", status_code=200, summary = "대표 노래 선정")
946946
async def set_main_song(
947947
diary_id: int,
948948
recommended_song_id: int,
@@ -985,7 +985,6 @@ async def set_main_song(
985985
video_id = data["items"][0]["id"]["videoId"]
986986
song.youtube_url = f"https://www.youtube.com/watch?v={video_id}"
987987

988-
# 🎯 대표곡 저장
989988
diary.main_recommended_song_id = song.id
990989
db.commit()
991990

0 commit comments

Comments
 (0)