Skip to content

Commit

Permalink
notification methods and follow notification added
Browse files Browse the repository at this point in the history
Signed-off-by: dhruv <[email protected]>
  • Loading branch information
jaydee029 committed Oct 30, 2024
1 parent f936a80 commit fbc2c09
Show file tree
Hide file tree
Showing 10 changed files with 517 additions and 13 deletions.
11 changes: 10 additions & 1 deletion internal/database/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

155 changes: 155 additions & 0 deletions internal/database/notification.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions internal/database/users.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ func main() {
s.Put("/users", apicfg.updateUser)
s.Post("/users/{username}/toggle_follow", apicfg.toggleFollow)
s.Delete("/prose/{proseId}", apicfg.DeleteProse)
s.Get("/notifications", apicfg.Notifications)
s.Post("/notifications/{notificationid}/mark_as_read", apicfg.ReadNotification)
s.Post("/notifications/mark_as_read", apicfg.ReadNotifications)
s.Post("/gold/webhooks", apicfg.is_gold)
t.Get("/metrics", apicfg.metrics)

Expand Down
Loading

0 comments on commit fbc2c09

Please sign in to comment.