This commit is contained in:
Eugene Pankov
2021-06-27 16:28:49 +02:00
parent 0689c984ff
commit df108d9071
24 changed files with 404 additions and 63 deletions

View File

@@ -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)]

View File

@@ -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()),