gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
12
core/apps/home/views/post.py
Normal file
12
core/apps/home/views/post.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from rest_framework import viewsets
|
||||
|
||||
from core.http import models
|
||||
from core.http import serializers
|
||||
|
||||
|
||||
class PostListView(viewsets.ModelViewSet):
|
||||
queryset = models.Post.objects.all()
|
||||
serializer_class = serializers.PostSerializer
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
return super().dispatch(request, *args, **kwargs)
|
||||
Reference in New Issue
Block a user