2024-04-28 13:04:07 +02:00
|
|
|
from flask import Blueprint
|
|
|
|
from flask_login import login_required
|
|
|
|
|
2024-06-17 22:36:23 +02:00
|
|
|
from distribusikan.distribusi_selector import distribusi_selector
|
2024-04-28 13:15:23 +02:00
|
|
|
|
2024-04-28 13:04:07 +02:00
|
|
|
# Distribusi Information
|
2024-06-17 22:36:23 +02:00
|
|
|
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
|
2024-04-28 13:04:07 +02:00
|
|
|
|
|
|
|
distribusikan = Blueprint(
|
2024-05-28 23:02:17 +02:00
|
|
|
"distribusikan",
|
|
|
|
__name__,
|
|
|
|
template_folder="templates/distribusikan",
|
|
|
|
static_folder="static",
|
2024-04-28 13:04:07 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@distribusikan.route("/distribusi", methods=["GET", "POST"])
|
|
|
|
@login_required
|
|
|
|
def distribusi():
|
2024-06-17 22:36:23 +02:00
|
|
|
return distribusi_workflow()
|
2024-04-28 13:04:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
@distribusikan.route("/upload", methods=["POST"])
|
|
|
|
@login_required
|
|
|
|
def upload():
|
2024-06-17 22:36:23 +02:00
|
|
|
return upload_page()
|
2024-04-28 13:04:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
@distribusikan.route("/theme", methods=["GET", "POST"])
|
|
|
|
@login_required
|
|
|
|
def theme():
|
2024-06-17 22:36:23 +02:00
|
|
|
return theme_selector()
|
2024-04-28 13:04:07 +02:00
|
|
|
|
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():
|
2024-06-17 22:36:23 +02:00
|
|
|
return css_editor_page()
|
2024-04-28 13:04:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
@distribusikan.route("/selector", methods=["GET", "POST"])
|
|
|
|
@login_required
|
|
|
|
def selector():
|
2024-06-17 22:36:23 +02:00
|
|
|
return distribusi_selector()
|