2024-04-28 13:04:07 +02:00
|
|
|
from flask import Blueprint
|
|
|
|
from flask_login import login_required
|
|
|
|
|
|
|
|
from distribusikan.distribusiselector import DistribusiSelector
|
2024-04-28 13:15:23 +02:00
|
|
|
|
2024-04-28 13:04:07 +02:00
|
|
|
# Distribusi Information
|
|
|
|
from distribusikan.distribusisinfo import DistribusisInfo
|
|
|
|
from distribusikan.distribusiworkflow import DistribusiWorkflow
|
|
|
|
from distribusikan.editor import Editor
|
|
|
|
from distribusikan.themeselector import ThemeSelector
|
|
|
|
from distribusikan.uploadpage import UploadPage
|
|
|
|
|
|
|
|
distribusikan = Blueprint(
|
|
|
|
"distribusikan",
|
|
|
|
__name__,
|
|
|
|
template_folder="templates/distribusikan",
|
|
|
|
static_folder="static",
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@distribusikan.route("/distribusi", methods=["GET", "POST"])
|
|
|
|
@login_required
|
|
|
|
def distribusi():
|
|
|
|
return DistribusiWorkflow()
|
|
|
|
|
|
|
|
|
|
|
|
@distribusikan.route("/upload", methods=["POST"])
|
|
|
|
@login_required
|
|
|
|
def upload():
|
|
|
|
return UploadPage()
|
|
|
|
|
|
|
|
|
|
|
|
@distribusikan.route("/theme", methods=["GET", "POST"])
|
|
|
|
@login_required
|
|
|
|
def theme():
|
|
|
|
return ThemeSelector()
|
|
|
|
|
2024-04-28 13:15:23 +02:00
|
|
|
|
2024-04-28 13:04:07 +02:00
|
|
|
@distribusikan.route("/editor", methods=["GET", "POST"])
|
|
|
|
@login_required
|
|
|
|
def editor():
|
|
|
|
return Editor()
|
|
|
|
|
|
|
|
|
|
|
|
@distribusikan.route("/selector", methods=["GET", "POST"])
|
|
|
|
@login_required
|
|
|
|
def selector():
|
|
|
|
return DistribusiSelector()
|