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 }))
     2.1 --- a/env/request/router.lua	Sun Mar 07 09:52:36 2021 +0100
     2.2 +++ b/env/request/router.lua	Thu Apr 22 14:25:42 2021 +0200
     2.3 @@ -3,6 +3,7 @@
     2.4    navigation = true,
     2.5    style = true,
     2.6    application = true,
     2.7 +  platform_config = true,
     2.8    info = true,
     2.9    member = true,
    2.10    avatar = true,

Impressum / About Us