updated packages and added markdown support on card content

This commit is contained in:
2024-09-27 00:07:24 +09:00
parent e1cac6ff05
commit e512da9a48
4 changed files with 34 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ app.use(express.static(path.join(__dirname, "../public")));
app.get('/api/news-list', async (request, response) => {
const database = new sqlite3.Database(path.join(__dirname, "../assets/databases/news.db"));
const sqlQuery = `SELECT * FROM news;`;
const sqlQuery = `SELECT * FROM news ORDER BY date DESC;`;
try {
const result = await asyncDatabaseRead(database, sqlQuery, (rows) => {
let ret = "";