Initial commit of secondary development sample code
This commit is contained in:
15
接收大模型复审告警/app/vlreview.py
Normal file
15
接收大模型复审告警/app/vlreview.py
Normal file
@ -0,0 +1,15 @@
|
||||
import base64
|
||||
import json
|
||||
|
||||
from flask import Blueprint, request
|
||||
|
||||
from app import url_prefix
|
||||
|
||||
bp = Blueprint('vlreview', __name__, url_prefix=url_prefix)
|
||||
|
||||
|
||||
@bp.route('vlreview', methods=['POST'])
|
||||
def post_alert():
|
||||
data = json.loads(request.get_data().decode('utf-8'))
|
||||
print(data)
|
||||
return data
|
||||
Reference in New Issue
Block a user