mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 12:11:46 +08:00
Register api and commands with absolute paths
This commit is contained in:
@@ -27,7 +27,7 @@ class APIView(Resource):
|
||||
return send_file(*args, **kwargs)
|
||||
|
||||
|
||||
API_PACKAGE = "api"
|
||||
API_PACKAGE = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
||||
def register_resources(resource_path, rest_api):
|
||||
|
Reference in New Issue
Block a user