test new lambdas
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
venv/
|
||||
__pycache__/
|
||||
db/
|
||||
@@ -1,7 +1,7 @@
|
||||
variables:
|
||||
CI_PROJECT_DIR: "."
|
||||
CI_REGISTRY_IMAGE: hub.ducoterra.net/ducoterra/django
|
||||
CI_COMMIT_TAG: 3.8.2_6
|
||||
CI_COMMIT_TAG: 3.8.2_8
|
||||
DEPLOY: test
|
||||
|
||||
stages:
|
||||
|
||||
@@ -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