Skip to content

Commit

Permalink
fix: 新合入代码 url -> re_path TencentBlueKing#7625
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Feb 19, 2025
1 parent 690fb7c commit 465c327
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gcloud/contrib/template_market/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
specific language governing permissions and limitations under the License.
"""

from django.conf.urls import include, url
from django.urls import include, re_path
from rest_framework.routers import DefaultRouter
from gcloud.contrib.template_market.viewsets import TemplatePreviewAPIView, TemplateSceneViewSet

from gcloud.contrib.template_market.viewsets import TemplatePreviewAPIView, TemplateSceneViewSet

template_market_router = DefaultRouter()
template_market_router.register(r"templates_scene", TemplateSceneViewSet)

urlpatterns = [
url(r"^api/", include(template_market_router.urls)),
url(r"^api/template_preview/$", TemplatePreviewAPIView.as_view()),
re_path(r"^api/", include(template_market_router.urls)),
re_path(r"^api/template_preview/$", TemplatePreviewAPIView.as_view()),
]

0 comments on commit 465c327

Please sign in to comment.