Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Winkler committed Oct 28, 2020
1 parent 40c5eb8 commit 03bd2b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/paperless/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def __get_boolean(key, default="NO"):
'rest_framework.authentication.BasicAuthentication',
'rest_framework.authentication.TokenAuthentication',
'paperless.auth.QueryTokenAuthentication'
],
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated',
]
}

Expand Down
5 changes: 5 additions & 0 deletions src/paperless/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from django.conf.urls import include, url
from django.contrib import admin
from django.urls import path
from django.views.generic import RedirectView
from rest_framework.authtoken import views
from rest_framework.routers import DefaultRouter

Expand Down Expand Up @@ -37,6 +39,9 @@
# The Django admin
url(r"admin/", admin.site.urls),

# Frontend assets TODO: this is pretty bad.
path('assets/<path:path>', RedirectView.as_view(url='/static/assets/%(path)s')),

# Root of the Frontent
url(r".*", IndexView.as_view()),

Expand Down

0 comments on commit 03bd2b7

Please sign in to comment.