mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 13:11:08 -05:00
- Add complete backend/ directory with full Django application - Add frontend/ directory with Vite + TypeScript setup ready for Next.js - Add comprehensive shared/ directory with: - Complete documentation and memory-bank archives - Media files and avatars (letters, park/ride images) - Deployment scripts and automation tools - Shared types and utilities - Add architecture/ directory with migration guides - Configure pnpm workspace for monorepo development - Update .gitignore to exclude .django_tailwind_cli/ build artifacts - Preserve all historical documentation in shared/docs/memory-bank/ - Set up proper structure for full-stack development with shared resources
59 lines
1.5 KiB
Python
59 lines
1.5 KiB
Python
from django.urls import path
|
|
from django.shortcuts import redirect
|
|
from django.urls import reverse_lazy
|
|
from . import views
|
|
|
|
app_name = "moderation"
|
|
|
|
|
|
def redirect_to_dashboard(request):
|
|
return redirect(reverse_lazy("moderation:dashboard"))
|
|
|
|
|
|
urlpatterns = [
|
|
# Root URL redirects to dashboard
|
|
path("", redirect_to_dashboard),
|
|
# Dashboard and Submissions
|
|
path("dashboard/", views.DashboardView.as_view(), name="dashboard"),
|
|
path("submissions/", views.submission_list, name="submission_list"),
|
|
# Search endpoints
|
|
path("search/parks/", views.search_parks, name="search_parks"),
|
|
path(
|
|
"search/ride-models/",
|
|
views.search_ride_models,
|
|
name="search_ride_models",
|
|
),
|
|
# Submission Actions
|
|
path(
|
|
"submissions/<int:submission_id>/edit/",
|
|
views.edit_submission,
|
|
name="edit_submission",
|
|
),
|
|
path(
|
|
"submissions/<int:submission_id>/approve/",
|
|
views.approve_submission,
|
|
name="approve_submission",
|
|
),
|
|
path(
|
|
"submissions/<int:submission_id>/reject/",
|
|
views.reject_submission,
|
|
name="reject_submission",
|
|
),
|
|
path(
|
|
"submissions/<int:submission_id>/escalate/",
|
|
views.escalate_submission,
|
|
name="escalate_submission",
|
|
),
|
|
# Photo Submissions
|
|
path(
|
|
"photos/<int:submission_id>/approve/",
|
|
views.approve_photo,
|
|
name="approve_photo",
|
|
),
|
|
path(
|
|
"photos/<int:submission_id>/reject/",
|
|
views.reject_photo,
|
|
name="reject_photo",
|
|
),
|
|
]
|