adds prod container and fixes build issues
This commit is contained in:
@@ -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,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()
|
||||
|
||||
Reference in New Issue
Block a user