Skip to content

Commit

Permalink
Allow XML response.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiarn committed Jan 31, 2023
1 parent 0476854 commit c4276da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ajenti-core/aj/api/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ def wrapper(self, context, *args, **kwargs):
context.respond(status)
return json.dumps(result)

# In case of other response, like e.g. XML
# Currently available if api=False and page=False
return result

return wrapper

return decorator

0 comments on commit c4276da

Please sign in to comment.