File indexing completed on 2026-04-25 08:29:11
0001 """
0002 URL configuration for swf_monitor_project project.
0003
0004 The `urlpatterns` list routes URLs to views. For more information please see:
0005 https://docs.djangoproject.com/en/5.0/topics/http/urls/
0006 Examples:
0007 Function views
0008 1. Add an import: from my_app import views
0009 2. Add a URL to urlpatterns: path('', views.home, name='home')
0010 Class-based views
0011 1. Add an import: from other_app.views import Home
0012 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
0013 Including another URLconf
0014 1. Import the include() function: from django.urls import include, path
0015 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
0016 """
0017 from django.contrib import admin
0018 from django.urls import path, include
0019 from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView, SpectacularSwaggerView
0020 from monitor_app.views import oauth_protected_resource
0021
0022 urlpatterns = [
0023 path(".well-known/oauth-protected-resource", oauth_protected_resource, name="oauth_protected_resource"),
0024 path("admin/", admin.site.urls),
0025
0026 path("mcp/", include("mcp_server.urls")),
0027 path("o/", include("oauth2_provider.urls", namespace="oauth2_provider")),
0028 path("api-auth/", include("rest_framework.urls")),
0029 path("accounts/", include("django.contrib.auth.urls")), # Add this line
0030 path("pcs/", include("pcs.urls")), # Physics Configuration System
0031 path("", include("monitor_app.urls")), # Include monitor_app URLs for the root path
0032 # API Schema and Documentation
0033 path('api/schema/', SpectacularAPIView.as_view(), name='schema'),
0034 # Optional UI:
0035 path('api/schema/swagger-ui/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
0036 path('api/schema/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'),
0037 ]