Marco Zeisler ff4b3508d8 move template to ./template;
setup django middleware;
setup angular frontend;
wire django and angular together;
2020-11-17 19:34:25 +01:00

16 lines
350 B
Python

import logging
from django.http import JsonResponse
from rest_framework.decorators import api_view
logger = logging.getLogger(__name__)
class TestApiClass:
@staticmethod
@api_view(['GET'])
def test_api(request):
logger.debug('Test api call: {}'.format(request))
return JsonResponse({'Result': 'success'}, safe=False)