distribusi-verse/verse/distribusikan/distribusikan.py

48 lines
1.1 KiB
Python

from flask import Blueprint
from flask_login import login_required
from distribusikan.distribusi_selector import distribusi_selector
# Distribusi Information
from distribusikan.distribusi_workflow import distribusi_workflow
from distribusikan.css_editor_page import css_editor_page
from distribusikan.theme_selector import theme_selector
from distribusikan.upload_page import upload_page
distribusikan = Blueprint(
"distribusikan",
__name__,
template_folder="templates/distribusikan",
static_folder="static",
)
@distribusikan.route("/distribusi", methods=["GET", "POST"])
@login_required
def distribusi():
return distribusi_workflow()
@distribusikan.route("/upload", methods=["POST"])
@login_required
def upload():
return upload_page()
@distribusikan.route("/theme", methods=["GET", "POST"])
@login_required
def theme():
return theme_selector()
@distribusikan.route("/editor", methods=["GET", "POST"])
@login_required
def editor():
return css_editor_page()
@distribusikan.route("/selector", methods=["GET", "POST"])
@login_required
def selector():
return distribusi_selector()