mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
error status codes, pretty output
This commit is contained in:
parent
2ec6043af8
commit
b4e3f9a643
1 changed files with 1 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -739,7 +739,7 @@ def api_success(message_or_obj)
|
||||||
end
|
end
|
||||||
|
|
||||||
def api_response(status, output)
|
def api_response(status, output)
|
||||||
halt status, JSON.pretty_generate(output)
|
halt status, JSON.pretty_generate(output)+"\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
def api_error(status, error_type, message)
|
def api_error(status, error_type, message)
|
||||||
|
|
Loading…
Add table
Reference in a new issue