liquid_feedback_frontend
changeset 1669:09f275c1f606
Added platform config API endpoint
author | bsw |
---|---|
date | Thu Apr 22 14:25:42 2021 +0200 (2021-04-22) |
parents | 6d75df24e66e |
children | fa82e72afdfe |
files | app/main/api/platform_config.lua env/request/router.lua |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/api/platform_config.lua Thu Apr 22 14:25:42 2021 +0200 1.3 @@ -0,0 +1,5 @@ 1.4 +slot.set_layout(nil, "application/json") 1.5 + 1.6 +local r = config.platform_config 1.7 + 1.8 +slot.put_into("data", json.export(json.object{ result = r }))