liquid_feedback_frontend

view app/main/api/member.lua @ 1371:475865e01c17

Work around layout issue
author bsw
date Wed Aug 08 17:14:44 2018 +0200 (2018-08-08)
parents 32cc544d5a5b
children 2a0d86117d54
line source
1 slot.set_layout(nil, "application/json")
3 local r = json.object{
4 result = json.array()
5 }
7 local selector = Member:new_selector()
8 :add_where("activated NOTNULL")
9 :add_order_by("id")
11 if param.get("id") then
12 selector:add_where{ "id = ?", param.get("id") }
13 end
15 local members = selector:exec()
16 local r.result = execute.chunk{ module = "api", chunk = "_member", params = { members = members } }
19 slot.put_into("data", json.export(r))
20 slot.put_into("data", "\n")

Impressum / About Us