mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 06:37:23 +08:00
前后端全面升级
This commit is contained in:
@@ -6,6 +6,7 @@ from inspect import getmembers, isclass
|
||||
|
||||
import six
|
||||
from flask import jsonify
|
||||
from flask import send_file
|
||||
from flask_restful import Resource
|
||||
|
||||
from api.lib.perm.auth import auth_required
|
||||
@@ -21,6 +22,10 @@ class APIView(Resource):
|
||||
def jsonify(*args, **kwargs):
|
||||
return jsonify(*args, **kwargs)
|
||||
|
||||
@staticmethod
|
||||
def send_file(*args, **kwargs):
|
||||
return send_file(*args, **kwargs)
|
||||
|
||||
|
||||
API_PACKAGE = "api"
|
||||
|
||||
|
Reference in New Issue
Block a user