Return file url in media create response

This commit is contained in:
2023-01-31 18:52:47 +11:00
parent 44e257077d
commit f8945c5b9c

View File

@@ -18,7 +18,9 @@ module Adamantium
m.success do |v|
res.status = 201
res.headers["Location"] = v
res.body = "OK"
res.body = {
url: v
}.to_json
end
end
end