KISS/kiss/api.py

13 lines
245 B
Python
Raw Normal View History

2022-11-17 02:52:37 +00:00
from flask import Blueprint, send_from_directory
import kiss
# Setup blueprint
bp = Blueprint("common", __name__)
# Serve Screenshots
@bp.route("/<path:path>")
def assets(path):
return send_from_directory(kiss.ssmanager.data_path, path)