Respond with syndicatiopn config

This commit is contained in:
2023-01-29 12:22:10 +11:00
parent 85ba619832
commit 80eb0696d0

View File

@@ -26,6 +26,17 @@ module Adamantium
} }
] ]
}.to_json }.to_json
elsif req.params[:q] == "syndicate-to"
res.status = 200
res.content_type = "Application/JSON"
res.body = {
"syndicate-to" => [
{
uid: "https://social.dnitza.com",
name: "Mastodon"
}
]
}.to_json
else else
res.render home res.render home
end end