routes on files

This commit is contained in:
Adolfo Reyna
2021-08-07 20:49:02 -07:00
parent 4069054117
commit 5b9c0362e0
8 changed files with 222 additions and 101 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
class Post {
constructor(info){
if(!info || !info.userid) throw "Can not construct empty posts"
if(!info || !info.userid) throw "Can not construct empty posts";
this.userid = info.userid;
this.content = info.content;
this.createdAt = info.createdAt || new Date();