Merge pull request #129 from mwmbl/allow-running-old-api

Allow running old API
This commit is contained in:
Daoud Clarke 2023-11-19 10:02:27 +00:00 committed by GitHub
commit 5874720801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,6 @@ https://docs.djangoproject.com/en/4.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.2/ref/settings/
"""
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.

View file

@ -17,7 +17,7 @@ Including another URLconf
from django.contrib import admin
from django.urls import path, include
from mwmbl.api import api_v1
from mwmbl.api import api_v1, api_original
from mwmbl.views import home_fragment, fetch_url, index
urlpatterns = [
@ -25,7 +25,8 @@ urlpatterns = [
path('api/v1/', api_v1.urls),
path('accounts/', include('allauth.urls')),
path('', index, name="home"),
path('', index, name="index"),
path('app/home/', home_fragment, name="home"),
path('app/fetch/', fetch_url, name="fetch_url")
path('app/fetch/', fetch_url, name="fetch_url"),
path('', api_original.urls),
]