new web ract
This commit is contained in:
@@ -8,6 +8,7 @@ from views.articles_list import ArticlesListView
|
||||
from views.article_editor import ArticleEditorView
|
||||
from views.categories import CategoriesView
|
||||
from views.media_library import MediaLibraryView
|
||||
from views.vk_sources import VkSourcesView
|
||||
|
||||
_PUBLIC = {"/", "/admin/login"}
|
||||
|
||||
@@ -45,6 +46,8 @@ def resolve_view(page: ft.Page, route: str):
|
||||
return CategoriesView(page)
|
||||
if sub == "media":
|
||||
return MediaLibraryView(page)
|
||||
if sub == "vk":
|
||||
return VkSourcesView(page)
|
||||
return DashboardView(page)
|
||||
|
||||
return NewsFeedView(page)
|
||||
|
||||
Reference in New Issue
Block a user