mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
rewrite url structure
This commit is contained in:
@ -10,6 +10,7 @@ from django.urls import include, path, re_path
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
from django.views.generic.base import RedirectView
|
||||
|
||||
from allauth.headless.urls import Client, build_urlpatterns
|
||||
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView
|
||||
from sesame.views import LoginView
|
||||
|
||||
@ -99,6 +100,12 @@ apipatterns = [
|
||||
users.api.LoginRedirect.as_view(),
|
||||
name='api-login-redirect',
|
||||
),
|
||||
path(
|
||||
'',
|
||||
include(
|
||||
(build_urlpatterns(Client.BROWSER), 'headless'), namespace='browser'
|
||||
),
|
||||
),
|
||||
]),
|
||||
),
|
||||
path('_allauth/', include('allauth.headless.urls')),
|
||||
|
Reference in New Issue
Block a user