mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	small fixes
This commit is contained in:
		| @@ -103,6 +103,9 @@ REST_FRAMEWORK = { | ||||
|         'rest_framework.authentication.BasicAuthentication', | ||||
|         'rest_framework.authentication.TokenAuthentication', | ||||
|         'paperless.auth.QueryTokenAuthentication' | ||||
|     ], | ||||
|     'DEFAULT_PERMISSION_CLASSES': [ | ||||
|         'rest_framework.permissions.IsAuthenticated', | ||||
|     ] | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|  | ||||
| @@ -37,6 +39,9 @@ urlpatterns = [ | ||||
|     # 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()), | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonas Winkler
					Jonas Winkler