# HG changeset patch # User bsw # Date 1619094342 -7200 # Node ID 09f275c1f60602df8d4a96b5b955bfaeb1c85a3d # Parent 6d75df24e66e243ec1c8cadfc6bb2829c26c4113 Added platform config API endpoint diff -r 6d75df24e66e -r 09f275c1f606 app/main/api/platform_config.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/main/api/platform_config.lua Thu Apr 22 14:25:42 2021 +0200 @@ -0,0 +1,5 @@ +slot.set_layout(nil, "application/json") + +local r = config.platform_config + +slot.put_into("data", json.export(json.object{ result = r })) diff -r 6d75df24e66e -r 09f275c1f606 env/request/router.lua --- a/env/request/router.lua Sun Mar 07 09:52:36 2021 +0100 +++ b/env/request/router.lua Thu Apr 22 14:25:42 2021 +0200 @@ -3,6 +3,7 @@ navigation = true, style = true, application = true, + platform_config = true, info = true, member = true, avatar = true,