KISS/kiss/api.py
2022-11-17 07:38:07 -05:00

13 lines
245 B
Python

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)