summaryrefslogtreecommitdiff
path: root/db/rest/post/api_post.sql
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-03-30 12:14:42 -0400
committerFreya Murphy <freya@freyacat.org>2024-03-30 12:14:42 -0400
commit1f04b83be337cc91a3fabcf4e574e2306f3d2eaa (patch)
tree74d7d65a7047e60d1877384e3c7b0d70c7b0e49a /db/rest/post/api_post.sql
parentstart database (user and post), and initial barebones home page (diff)
downloadxssbook2-1f04b83be337cc91a3fabcf4e574e2306f3d2eaa.tar.gz
xssbook2-1f04b83be337cc91a3fabcf4e574e2306f3d2eaa.tar.bz2
xssbook2-1f04b83be337cc91a3fabcf4e574e2306f3d2eaa.zip
refactor
Diffstat (limited to 'db/rest/post/api_post.sql')
-rw-r--r--db/rest/post/api_post.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/rest/post/api_post.sql b/db/rest/post/api_post.sql
index a91d9d2..b49289c 100644
--- a/db/rest/post/api_post.sql
+++ b/db/rest/post/api_post.sql
@@ -5,7 +5,8 @@ CREATE VIEW api.post AS
p.content,
p.date
FROM
- admin.post p;
+ admin.post p
+ ORDER BY id DESC;
GRANT SELECT ON TABLE api.post
TO rest_anon, rest_user;