adds prod container and fixes build issues

This commit is contained in:
2025-08-03 11:38:09 +02:00
parent 1aa28f978d
commit 898e275809
6 changed files with 25 additions and 5 deletions
+8
View File
@@ -4,7 +4,15 @@ from rest_framework.views import APIView
from rest_framework.response import Response
from playlist.serializers import ProfileSerializer, ProfileUpdateSerializer, BackgroundSerializer
from playlist.models import Profile, Background
from drf_spectacular.utils import extend_schema
@extend_schema(
summary="Get the current user's profile",
description="Retrieve the profile information of the currently authenticated user.",
responses={
200: ProfileSerializer,
},
)
class ProfileMeView(APIView):
def get(self, request):
profile = request.user.profile
+2
View File
@@ -2,7 +2,9 @@ from rest_framework.views import APIView
from rest_framework.response import Response
from django.contrib.auth.models import User
from playlist.serializers import UserSerializer
from drf_spectacular.utils import extend_schema
@extend_schema(responses={200: UserSerializer})
class UserListView(APIView):
def get(self, request):
users = User.objects.all()