Permalink
Browse files

fields in /db/track

  • Loading branch information...
comotion committed Nov 19, 2012
1 parent 5312e19 commit 35a74321c2e8058eb57371df7b73036267a64cae
Showing with 3 additions and 1 deletion.
  1. +3 −1 web/hangover.lua
View
@@ -131,7 +131,9 @@ end
-- GET /db/:id:
function get_track(web,...)
local id = ...
- return json.encode{tracks:get(id)}
+ local track = tracks:get(id)
+ local fields = u.keys(track)
+ return json.encode{fields=fields,track=track}
end

0 comments on commit 35a7432

Please sign in to comment.