freebie/api/views.py
2026-09-17 12:51:39 +05:00

9 lines
No EOL
206 B
Python

from rest_framework.response import Response
from rest_framework.decorators import api_view
@api_view(["GET"])
def hello(request):
return Response({
"message": "Hello from Freebie API!"
})