From 574d9557cf8499064a9cdeeff022b6e60b2aa7d0 Mon Sep 17 00:00:00 2001 From: lewis_yan Date: Wed, 1 Apr 2026 19:21:39 +0800 Subject: [PATCH] fix(dashboard): use DashboardView instead of placeholder in urls.py The urls.py was still using a placeholder view function. Updated to import and use the proper DashboardView.as_view() from views.py. --- backend/apps/pisadmin/dashboard/urls.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/backend/apps/pisadmin/dashboard/urls.py b/backend/apps/pisadmin/dashboard/urls.py index fc297cf..4587499 100644 --- a/backend/apps/pisadmin/dashboard/urls.py +++ b/backend/apps/pisadmin/dashboard/urls.py @@ -1,13 +1,6 @@ from django.urls import path -from rest_framework.decorators import api_view -from rest_framework.response import Response - - -@api_view(['GET']) -def dashboard_view(request): - return Response({"status": "ok"}) - +from .views import DashboardView urlpatterns = [ - path('', dashboard_view, name='dashboard'), + path('', DashboardView.as_view(), name='dashboard'), ]