feat: add likes

+ add ability for user to like a posts
+ add ability for user ot remove a like
+ add display of reply and like count
This commit is contained in:
Stevan Freeborn
2023-09-14 23:02:47 -05:00
parent 9cc9077017
commit 40515b3099
8 changed files with 161 additions and 12 deletions
+2
View File
@@ -15,6 +15,7 @@ import type {
FunctionReference,
} from "convex/server";
import type * as http from "../http";
import type * as likes from "../likes";
import type * as posts from "../posts";
import type * as users from "../users";
@@ -28,6 +29,7 @@ import type * as users from "../users";
*/
declare const fullApi: ApiFromModules<{
http: typeof http;
likes: typeof likes;
posts: typeof posts;
users: typeof users;
}>;