|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
import requests
|
|
|
|
|
import mimetypes
|
|
|
|
|
|
|
|
|
|
from flask import request, abort, render_template, Response, session, send_file, stream_with_context, Blueprint
|
|
|
|
|
from functools import wraps
|
|
|
|
@ -30,6 +31,14 @@ static_bp = Blueprint('images', __name__,
|
|
|
|
|
ui_bp.register_blueprint(static_bp)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mimetypes.add_type('application/javascript', '.js')
|
|
|
|
|
mimetypes.add_type('text/css', '.css')
|
|
|
|
|
mimetypes.add_type('font/woff2', '.woff2')
|
|
|
|
|
mimetypes.add_type('image/svg+xml', '.svg')
|
|
|
|
|
mimetypes.add_type('image/png', '.png')
|
|
|
|
|
mimetypes.add_type('image/x-icon', '.ico')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def check_login(actual_method):
|
|
|
|
|
@wraps(actual_method)
|
|
|
|
|
def wrapper(*args, **kwargs):
|
|
|
|
|