mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Upload images API
Conflicts: requirements.txt setup.py
This commit is contained in:
1 parent
61fb641215
commit
bb4ebbfe64
9 files changed
+121
-4
No files matched your search
@@ -89,6 +89,7 @@ class Route(object):
|
||||
output_schema = kw.get("output", {})
|
||||
input_schema = kw.get("input", {})
|
||||
api_version = kw.get("api_version", 1)
|
||||
raw = kw.get("raw", False)
|
||||
|
||||
# If it's a JSON api endpoint just register the endpoint an do nothing
|
||||
if api_version is None:
|
||||
@@ -119,8 +120,9 @@ class Route(object):
|
||||
# This block is executed at each method call
|
||||
|
||||
# Non API call
|
||||
if api_version is None:
|
||||
if api_version is None or raw is True:
|
||||
response = Response(request=request, route=route, output_schema=output_schema)
|
||||
|
||||
yield from func(request, response)
|
||||
return response
|
||||
|
||||
|
||||
Reference in new issue
Block a user