From f8945c5b9cbcb19ea5223ce5f2b090a6030530d9 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Tue, 31 Jan 2023 18:52:47 +1100 Subject: [PATCH] Return file url in media create response --- app/actions/media/create.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/actions/media/create.rb b/app/actions/media/create.rb index e6520b8..05e6c4d 100644 --- a/app/actions/media/create.rb +++ b/app/actions/media/create.rb @@ -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