from django.urls import path from . import views urlpatterns = [ # 扫描相关 path('scan/', views.scan_files, name='scan_files'), path('tree/', views.get_file_tree, name='get_file_tree'), # 同步状态 path('status/', views.check_sync_status, name='check_sync_status'), # 差异对比 path('diff/', views.get_file_diff, name='get_file_diff'), # 同步操作 path('sync/db/', views.sync_to_db, name='sync_to_db'), path('sync/local/', views.sync_to_local, name='sync_to_local'), # 版本历史 path('versions/', views.get_versions, name='get_versions'), # 操作历史 path('history/', views.get_history, name='get_history'), # 统计信息 path('stats/', views.get_stats, name='get_stats'), # .lobsterignore 管理 path('ignore/patterns/', views.get_ignore_patterns, name='get_ignore_patterns'), path('ignore/reload/', views.reload_ignore_patterns, name='reload_ignore_patterns'), ]