test new lambdas
This commit is contained in:
@@ -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'}))
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user