forked from erp-dev/erp
fix: rebuild stock change record
This commit is contained in:
@@ -15,10 +15,25 @@ Including another URLconf
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
from django.urls import path, include
|
||||
from stock.views import router
|
||||
from rest_framework_simplejwt.views import (
|
||||
TokenObtainPairView,
|
||||
TokenRefreshView,
|
||||
)
|
||||
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
|
||||
|
||||
urlpatterns = [
|
||||
|
||||
# JWT 登录
|
||||
path('api/auth/login/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
|
||||
# path('api/auth/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
|
||||
|
||||
# API 文档
|
||||
path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
|
||||
path('api/docs/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
|
||||
|
||||
path('admin/', admin.site.urls),
|
||||
path('stock/', router.urls),
|
||||
path('api/v1/', include('api_v1.urls')),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user