tweaking and adding homepage with trending and so on

This commit is contained in:
2024-01-25 16:25:03 +01:00
parent 421ab338fc
commit 3ad55cd36a
8 changed files with 351 additions and 2 deletions
+6
View File
@@ -42,6 +42,12 @@ router.post('/', async (req, res) => {
username: username,
password: hashedPassword,
creation: currentDate.toLocaleDateString('en-gb'),
likedPosts: [],
savedPosts: [],
posts: [],
comments: [],
activity: [],
activityPoints: 0
}
const newUser = await db.create('users', user);