mirror of
https://github.com/Eugeny/tabby-web.git
synced 2026-08-17 14:56:03 +01:00
wip
This commit is contained in:
@@ -51,7 +51,6 @@ class AppVersionViewSet(ListModelMixin, GenericViewSet):
|
||||
lookup_field = 'id'
|
||||
lookup_value_regex = r'[\w\d.-]+'
|
||||
queryset = ''
|
||||
permission_classes = [IsAuthenticated]
|
||||
|
||||
def _get_versions(self):
|
||||
return [AppVersion(version=x) for x in os.listdir(settings.APP_DIST_PATH)]
|
||||
|
||||
@@ -14,7 +14,8 @@ urlpatterns = [
|
||||
path('api/1/auth/logout', api.LogoutView.as_view()),
|
||||
path('api/1/user', api.UserViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
|
||||
|
||||
path('', views.IndexView.as_view()),
|
||||
re_path('^(|login|app)$', views.IndexView.as_view()),
|
||||
|
||||
path('terminal', views.TerminalView.as_view()),
|
||||
path('app-dist/<version>/<path:path>', views.AppDistView.as_view()),
|
||||
path('build/<path:path>', views.BuildView.as_view()),
|
||||
|
||||
@@ -138,7 +138,7 @@ AUTHENTICATION_BACKENDS = (
|
||||
|
||||
SOCIAL_AUTH_GITHUB_SCOPE = ['read:user', 'user:email']
|
||||
|
||||
LOGIN_REDIRECT_URL = '/'
|
||||
LOGIN_REDIRECT_URL = '/app'
|
||||
|
||||
APP_DIST_PATH = BASE_DIR / 'app-dist'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user