from django.shortcuts import render
from rest_framework.decorators import api_view
from rest_framework.response import Response


def index(request):
    return render(request, 'index.html')


@api_view(['GET'])
def test(request):
    if request.method == 'GET':
        return Response({"message": "Hello, World!"})
