Update astrbot/dashboard/routes/route.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -59,4 +59,5 @@ class Response:
|
||||
return self
|
||||
|
||||
def to_json(self):
|
||||
return jsonify(asdict(self))
|
||||
# Return a plain dict so callers can safely wrap with jsonify()
|
||||
return asdict(self)
|
||||
|
||||
Reference in New Issue
Block a user