feat: add blog_options and rss feed generation
This commit is contained in:
@@ -5,6 +5,8 @@ export default class PostController {
|
||||
let queryText = "SELECT * FROM posts";
|
||||
|
||||
if (options && options.order === "asc") {
|
||||
queryText += ' ORDER BY created_at ASC';
|
||||
} else {
|
||||
queryText += ' ORDER BY created_at DESC';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user