PUT, DELETE and address Changes

- Added PUT, PATCH and DELETE to modify data in the database.
- refactored modules
- completed docstrings
- data is now served via api/ and web pages via /
This commit is contained in:
Johannes Randerath
2024-06-20 23:25:33 +02:00
parent 9cc39c56ab
commit 80197208f8
8 changed files with 328 additions and 253 deletions

View File

@@ -30,6 +30,7 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'api.apps.ApiConfig',
'pt_map.apps.PtMapConfig',
'django.contrib.admin',
'django.contrib.auth',

View File

@@ -6,5 +6,6 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include("pt_map.urls"))
path('api/', include("api.urls")),
path('', include("pt_map.urls")),
]