test new lambdas

This commit is contained in:
ducoterra
2020-04-23 10:14:48 -04:00
parent 83d7f09eef
commit 7136453073
3 changed files with 5 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ from django.urls import path
from django.http import JsonResponse
urlpatterns = [
path('', lambda request: JsonResponse({"one": 1, "two": 2, "three": 3})),
path('test/', lambda request: JsonResponse({'hello':'world'})),
path('admin/', admin.site.urls),
path('test/', lamda res: JsonResponse(res, {'hello':'world'}))
]