mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:26:47 +01:00
basic statistics
This commit is contained in:
parent
69a62fbf64
commit
d67eacdd6f
4 changed files with 33 additions and 5 deletions
|
|
@ -14,7 +14,8 @@ from documents.views import (
|
|||
DocumentTypeViewSet,
|
||||
SearchView,
|
||||
IndexView,
|
||||
SearchAutoCompleteView
|
||||
SearchAutoCompleteView,
|
||||
StatisticsView
|
||||
)
|
||||
|
||||
api_router = DefaultRouter()
|
||||
|
|
@ -31,6 +32,7 @@ urlpatterns = [
|
|||
url(r"^api/auth/",include(('rest_framework.urls', 'rest_framework'), namespace="rest_framework")),
|
||||
url(r"^api/search/autocomplete/", SearchAutoCompleteView.as_view(), name="autocomplete"),
|
||||
url(r"^api/search/", SearchView.as_view(), name="search"),
|
||||
url(r"^api/statistics/", StatisticsView.as_view(), name="statistics"),
|
||||
url(r"^api/token/", views.obtain_auth_token), url(r"^api/", include((api_router.urls, 'drf'), namespace="drf")),
|
||||
|
||||
# Favicon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue