修复bug
This commit is contained in:
1 parent
2a3cb0ee73
commit
83c1c131c9
3 files changed
+46
-12
No files matched your search
+3
-3
@@ -11,13 +11,13 @@ import os
|
||||
from flask import Flask, request, render_template, g, Blueprint, send_file
|
||||
from pywxdump import analyzer, read_img_dat, read_audio
|
||||
from pywxdump.api.rjson import ReJson, RqJson
|
||||
|
||||
# app = Flask(__name__, static_folder='../ui/web/dist', static_url_path='/')
|
||||
|
||||
api = Blueprint('api', __name__, template_folder='templates')
|
||||
api = Blueprint('api', __name__, template_folder='../ui/web')
|
||||
api.debug = False
|
||||
|
||||
|
||||
|
||||
@api.route('/api/init', methods=["GET", 'POST'])
|
||||
def init():
|
||||
"""
|
||||
@@ -182,7 +182,7 @@ def get_audio():
|
||||
video_data = f"data:audio/wav;base64,{video_base64}"
|
||||
return ReJson(0, video_data)
|
||||
|
||||
|
||||
@api.route('/')
|
||||
def index():
|
||||
return render_template('index.html')
|
||||
|
||||
Reference in new issue
Block a user