Merge remote-tracking branch 'origin/master'

This commit is contained in:
Devoalda 2023-10-23 16:09:38 +08:00
commit 5250101cd7
1 changed files with 62 additions and 60 deletions

View File

@ -4,10 +4,12 @@ import uuid
from django.core.cache import cache from django.core.cache import cache
from rest_framework.decorators import api_view from rest_framework.decorators import api_view
from rest_framework.response import Response from rest_framework.response import Response
from django.conf import settings
@api_view(['POST']) @api_view(['GET', 'POST'])
def manage_items(request, *args, **kwargs): def manage_items(request, *args, **kwargs):
if request.method == 'POST':
# Define a timeout value (in seconds) # Define a timeout value (in seconds)
timeout = 5 timeout = 5