Coverage for django_log_lens / urls.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-15 19:39 +0000

1from django.shortcuts import redirect 

2from django.urls import path 

3 

4from .views import (clear_logfile, download_logfile, log_js_error, 

5 log_lens_view, login_view, logout_view, request_logfile, 

6 request_logfile_paths, request_logfile_timestamp) 

7 

8app_name = "log-lens" 

9 

10urlpatterns = [ 

11 path('', lambda _: redirect('log-lens:view')), 

12 path('request/paths', request_logfile_paths, name="request-logfile-paths"), 

13 path('request/file', request_logfile, name="request-logfile"), 

14 path('download', download_logfile, name="download-logfile"), 

15 path('request/timestamp', request_logfile_timestamp, name="request-logfile-timestamp"), 

16 path('post', log_js_error, name="post-log"), 

17 path('clear/file', clear_logfile, name="clear"), 

18 path('view', log_lens_view, name="view"), 

19 path("login", login_view, name="login"), 

20 path("logout", logout_view, name="logout"), 

21]