feature #6: implement route for search articles

This commit is contained in:
2019-07-31 23:07:58 +02:00
parent 3bf7ee1d13
commit 4c13d18e8d
11 changed files with 97 additions and 38 deletions

View File

@@ -6,8 +6,7 @@ begin
select to_json(t) into resource
from (
select
z.*,
find_user_by_id(z.user_id) as "user"
z.*
from citizen as z
where z.id = _id
) as t;