Skip to content

Commit 0ab17da

Browse files
committed
Implementing API endpoints using Express-Mongo
1 parent f495ea2 commit 0ab17da

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

server/djangoapp/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
app_name = 'djangoapp'
88
urlpatterns = [
99
# # path for registration
10-
path(route='register', view=views.registration, name='register')
10+
path(route='register', view=views.registration, name='register'),
1111

1212
# path for login
1313
path(route='login', view=views.login_user, name='login'),

server/djangoproj/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
# SECURITY WARNING: don't run with debug turned on in production!
2929
DEBUG = True
3030

31-
ALLOWED_HOSTS = ['localhost','https://drun16info-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai']
31+
ALLOWED_HOSTS = ['localhost','https://drun16info-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai',
32+
'127.0.0.1','https://drun16info-3030.theiadockernext-0-labs-prod-theiak8s-4-tor01.proxy.cognitiveclass.ai/']
3233
CSRF_TRUSTED_ORIGINS = ['https://drun16info-8000.theianext-0-labs-prod-misc-tools-us-east-0.proxy.cognitiveclass.ai']
3334

3435
REST_FRAMEWORK = {

server/frontend/static/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
</head>
8+
<body>
9+
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)