Merge pull request #129 from mwmbl/allow-running-old-api
Allow running old API
This commit is contained in:
commit
5874720801
2 changed files with 4 additions and 4 deletions
|
@ -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'.
|
||||
|
|
|
@ -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),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue