update to prod,removed db

This commit is contained in:
2025-10-13 17:44:00 -05:00
parent 31845835e3
commit 61e198ff55
7 changed files with 68 additions and 22 deletions

View File

@@ -20,6 +20,7 @@ from .views import *
urlpatterns = [
# re_path(r'^faqs/', FAQsAPIView.as_view(), name="get-faqs"),
re_path(r'^links/', SocialLinksAPIView.as_view(), name="get-links"),
re_path(r'^list-links/', SocialLinksListAPIView.as_view(), name="list-links"),
# re_path(r'^posts/', SocialPostsAPIView.as_view(), name="get-posts"),
re_path(r'^images/', SocialImgsAPIView.as_view(), name="get-images"),
# re_path(r'^events-token/', EventsTokenAPIView.as_view(), name="get-token-events"),

View File

@@ -13,9 +13,7 @@ from rest_framework.authentication import SessionAuthentication, BasicAuthentica
from rest_framework.permissions import IsAuthenticated
from rest_framework_api_key.permissions import HasAPIKey
# from durin.auth import TokenAuthentication
# from durin.views import APIAccessTokenView
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
@@ -40,6 +38,12 @@ class SocialPostsAPIView(generics.ListAPIView):
permission_classes = [HasAPIKey]
class SocialLinksListAPIView(generics.ListAPIView):
serializer_class = SocialLinkSerializer
queryset = SocialLink.objects.all()[:96]
permission_classes = [HasAPIKey]
class SocialLinksAPIView(generics.ListAPIView):
serializer_class = SocialLinkSerializer
queryset = SocialLink.objects.all()[:50]